Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): wide chat tables grow past the reading column before scrolling #13443

Closeditssotsot(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/13443/headopened View on GitHub

What Changed

  • Wider tables. Top-level tables in assistant replies can grow up to 64rem, centered on the 48rem reading column, so they widen evenly into the side gutters. Past that, or past the pane width minus the minimap gutter, the existing horizontal scroll view takes over. The centering is flex layout (justify-content: center), not transforms, so text stays pixel-snapped. The timeline scroll element is a size container (@container/chat-timeline) so the cap can use the pane width.
  • No more expand/collapse toggle. Cells always wrap at 24rem instead of truncating with an ellipsis, which is what the old expanded mode did. The table footer now only has the copy button.
  • Scope. Only direct-child tables of assistant message markdown (.chat-markdown-wide-tables) widen. Tables inside lists, blockquotes, reasoning, user messages, and cards stay in the column.
  • Row clip. I removed the timeline row's overflow-x-clip so the wider table can paint. The list's own overflow-x-hidden and LegendList's per-item contain: paint still clip at the pane edge.

Surfaces: web and desktop share this path. Mobile uses its own native markdown renderer and is unchanged.

Why

Markdown tables in assistant replies were capped to the reading column. Any table with more than a few columns got a horizontal scroll view and truncated cells, even when the chat pane had plenty of empty space on both sides. Letting tables use a bounded amount of that space makes most comparison tables readable at a glance. The scroll view stays as the fallback for very wide tables. Once cells wrap by default, the expand toggle has nothing left to do, so it's removed rather than kept as a dead control.

UI Changes

Before: the table is limited to the reading column, cells truncate, and it scrolls horizontally.

Before

After: the table widens past the column (up to 64rem), cells wrap, and there's no expand toggle.

After

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes (N/A: no animation or new interaction; the change is static layout)

🤖 Generated with Claude Code (Claude Opus 5.5)

Summary by CodeRabbit

  • Improvements

    • Assistant reply tables now wrap long cell content and use a wider, capped layout for easier reading.
    • The copy-as-Markdown and copy-as-CSV controls appear beside the table.
  • Changes

    • Expand/collapse controls have been removed from assistant reply tables.
    1. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    2. Approvability

      Verdict: Approved at fe3dbbc

      Macroscope's review found this PR approvable — This is a localized web UI adjustment that changes how assistant markdown tables use available timeline width while preserving the existing scrolling fallback and table controls. It introduces no schema, deployment, security, billing, or configuration changes.

      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    3. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →

      Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration

      Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml

      Review profile: CHILL

      Plan: Advanced

      Run ID: eccd7096-e97d-4b73-a5c6-2aa511a3f0b8

      📥 Commits

      Reviewing files that changed from the base of the PR and between fe3dbbc6899e95d26a14192b0eb73f4b78a3ecd8 and ce427942f7c8040decc923e62403dc01fd7c3e22.

      📒 Files selected for processing (3)
      • apps/web/src/components/ChatMarkdown.tsx
      • apps/web/src/components/chat/MessagesTimeline.tsx
      • apps/web/src/index.css
      🚧 Files skipped from review as they are similar to previous changes (1)
      • apps/web/src/components/chat/MessagesTimeline.tsx

      Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.


      📝 Walkthrough

      Walkthrough

      Assistant markdown tables no longer have expand and collapse controls. Their cells always wrap. The assistant timeline opts into wide-table styling, which sizes the table frame against the timeline container and caps its width at 64rem.

      Changes

      Assistant table layout

      Layer / File(s)Summary
      Table controls and cell layout
      apps/web/src/components/ChatMarkdown.tsx, apps/web/src/index.css
      The table retains its copy menu and removes expansion state and controls. Cells always wrap, with a maximum width of 24rem.
      Timeline frame sizing
      apps/web/src/components/chat/MessagesTimeline.tsx, apps/web/src/index.css
      The assistant timeline opts into wide-table styling and adds a container query. The row wrapper no longer clips horizontal overflow. The frame is top-aligned and capped at 64rem.

      Estimated code review effort: 2 (Simple) | ~10 minutes

      Suggested reviewers: juliusmarminge

      Merge Risk: ⚪ Minimal · up to ce427

      No actionable merge-blocking issue remains. Wide assistant tables can use the wider frame while other inspected content stays bounded.

      🚥 Pre-merge checks | ✅ 4 | ❌ 1

      ❌ Failed checks (1 warning)

      Check nameStatusExplanationResolution
      Docstring Coverage⚠️ WarningDocstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 2 files. (1 skipped: 1…Write docstrings for the functions missing them to satisfy the coverage threshold.
      ✅ Passed checks (4 passed)
      Check nameStatusExplanation
      Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
      Title check✅ PassedThe title clearly and concisely summarizes the primary change: assistant chat tables can grow beyond the reading column before horizontal scrolling applies.
      Description check✅ PassedThe description includes all required sections, explains the layout and behavior changes, states the rationale, provides before/after UI screenshots, and completes the checklist.
      Full details: Docstring Coverage

      Explanation

      Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 2 files. (1 skipped: 1 unsupported.)

      • Fix all pre-merge checks with AI
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Create a new PR

      Comment `@coderabbitai help` to get the list of available commands.
    4. itssotsot(GitHub profile, opens in a new tab) changed the title

    5. Cool! I'm here because it's annoying to scroll sideways when there's still space left on my screen. But why 64rem as the limit? I like the approach of #11594, but I don't want the whole chat to be wide, I only want huge tables to be wide.

    6. I added that limit because I didn't want the table to occupy the whole width. It felt a little bit weird. Either way, I don't think they will merge with BR.

    7. Note

      This comment is posted by Julius' dot

      This changes the default table layout and removes the existing expand/collapse control. No maintainer approval for that direction is linked. Closing under prior approval. The wasted space around wide tables is useful feedback; please agree on the layout and controls in Ideas, then link that approval for reconsideration.

    8. juliusmarminge closed this

Sign in to join this conversation.