Skip to content

fix(staged): add missing table CSS to chat markdown - #843

Merged
matt2e merged 1 commit into
mainfrom
tables-not-showing
Jul 2, 2026
Merged

fix(staged): add missing table CSS to chat markdown#843
matt2e merged 1 commit into
mainfrom
tables-not-showing

Conversation

@matt2e

@matt2e matt2e commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Markdown tables rendered in the chat view of the session modal were displaying without any styling, making them effectively invisible/unreadable. This adds the missing table CSS to SessionModal.svelte so tables render with borders, padding, and a styled header row.

Changes

  • Add :global table styles to .markdown-content:
    • table: collapsed borders, full width, vertical margin
    • th/td: subtle border, padding, left-aligned text
    • th: primary background and bold text for header cells

Testing

Styling-only change; verified via the CI checks that ran on push (crates-fmt, crates-test, crates-lint, differ-ci, staged-ci all passing).

The chat transcript's .markdown-content block styled every markdown
element except tables, so tables rendered with browser defaults (no
borders, cramped layout) while the note dialog styled them correctly.
Both views render identical HTML from the shared renderMarkdown, so
port the three table rules from NoteModal into SessionModal: table
(border-collapse, full width, margin), th/td (borders, padding,
left-align), and th (header background, bold).

Signed-off-by: Matt Toohey <contact@matttoohey.com>
@matt2e
matt2e requested review from baxen and wesbillman as code owners July 2, 2026 05:51
@matt2e
matt2e merged commit b144c7e into main Jul 2, 2026
4 checks passed
@matt2e
matt2e deleted the tables-not-showing branch July 2, 2026 05:55
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