Skip to content

feat(chat): add wide previews for individual messages - #1472

Merged
nixuuu merged 1 commit into
devfrom
feat/wide-message-preview
Nov 29, 2026
Merged

nixuuu merged 1 commit into
devfrom
feat/wide-message-preview

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Open a single message in a wide dialog in bot chats and threads. The preview uses the regular message renderer and leaves the conversation at the same scroll position.
  • Offer the action for tables and code when a wider viewport gives the content at least 2 rem of usable width. Measure a table’s intrinsic width so wrapped tables qualify even without horizontal overflow. Recalculate when the window or message changes size.
  • Use the standard dialog close control and Escape, with focus returning to the action when it is still available.

Thanks to @marcinniewinski for reporting the wrapped-table case.

Verification

Local on Linux (b657bd776). Formatting and lint passed for all nine changed Svelte files. Diff whitespace check passed. Chromium smoke with synthetic messages exercised the production message components at 1440, 800 and 390 px. Checked regular prose, a small table, a wrapped table, code, folded thread messages, resizing, scroll position, closing and focus restoration. The thread preview was also checked in dark appearance with reduced motion.

GitHub CI (b657bd776). The required checks commitlint and Typecheck, tests, builds passed. Static checks and Affected client checks passed, including typecheck and the shared web renderer build. GitHub squash-merged this revision into dev.

Copy audit. Added “Open wide preview” as the action’s accessible label and tooltip. Added “Message preview” as the dialog title. The dialog uses the existing “Close” control. Checked sentence case, action wording, accessible names and placement across the three viewport widths.

@nixuuu
nixuuu enabled auto-merge (squash) November 29, 2026 15:17
@nixuuu
nixuuu merged commit 50a04d9 into dev Nov 29, 2026
11 checks passed
@nixuuu
nixuuu deleted the feat/wide-message-preview branch November 29, 2026 15:20
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