Skip to content

feat: click-to-preview for images in chat messages - #450

Open
111-test-111 wants to merge 1 commit into
agegr:mainfrom
111-test-111:pr/image-preview
Open

feat: click-to-preview for images in chat messages#450
111-test-111 wants to merge 1 commit into
agegr:mainfrom
111-test-111:pr/image-preview

Conversation

@111-test-111

Copy link
Copy Markdown

What

Wraps images in user and custom chat messages with a button that opens a larger preview overlay (components/ImagePreview.tsx), instead of bare <img> tags. Escape / backdrop click closes the overlay; strings are i18n'd (chat.previewImage).

Notes

  • 3 new tests (component Escape behavior + both wiring sites). Full suite: 427 pass / 0 fail; tsc --noEmit and eslint clean.

Wrap images in user and custom (extension) messages in an ImagePreview
button that opens a larger preview overlay via a portal, closable by
backdrop click, close button, or Escape. Adds the chat.previewImage
i18n key (en + zh-CN).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant