Skip to content

fix(chat): a wide table scrolls instead of squeezing its columns - #481

Merged
devswha merged 3 commits into
devswha:mainfrom
aNNdii:fix/chat-table-scroll
Oct 5, 2026
Merged

devswha merged 3 commits into
devswha:mainfrom
aNNdii:fix/chat-table-scroll

Conversation

@aNNdii

@aNNdii aNNdii commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Change

A Markdown table in a chat reply that does not fit the reply's width squeezed every column
until it fit, down to a letter or two. Words and file paths broke after any letter, and
overflow-x: auto on .markdown-table-wrap never took effect, because the table never
overflowed.

The cause is overflow-wrap: anywhere on .markdown, which table cells inherit. anywhere
(unlike break-word) counts every possible break toward an element's min-content width. Every
column therefore had a narrowest width of about one character, and the auto table layout always
fit.

  • .markdown th, .markdown td set overflow-wrap: normal. A cell breaks between words only, so
    a column is never narrower than its longest word, and a table without room scrolls sideways
    in its own box. The page itself does not scroll, and a table that fits still fills the reply.
  • .markdown-file (a file path that opens the viewer) had its own overflow-wrap: anywhere. It
    now inherits instead: in a paragraph it still breaks anywhere, and in a table cell it breaks
    between words like the rest of the cell.
  • DESIGN.md describes the behavior, and CHANGELOG.md has a line under Unreleased → Fixed.

Validation

  • bun run generate:types --check, bun run typecheck, bun run build and
    bun run test:unit (1379 tests) pass.
  • The browser lane in scripts/ci-browser.sh was run locally with Playwright's Chromium on an
    isolated herdr session.
    • Every script passes except scripts/ui-regression.ts, which times out waiting for the
      prompt card's "1. Yes, continue" button.
    • Unmodified main (3308c36) fails at the same step, with the same list of passing checks
      before it, so this failure comes from the local environment and not from this change.
      Locally herdr is 0.9.2; CI uses 0.9.3.
  • The real client over the demo transport in headless Chromium, with an invented 5-column
    table (code spans, a file path that opens the viewer, prose) added to the demo's infra reply:
Viewport (reply width) Before After
390×844 (366px) squeezed into 366px, columns 28/67/36/197/37px; "Verdict", "Confirmed" and the paths break after any letter 519px wide, scrolls inside its wrap; the document stays 390px wide, no word breaks
1440×900 (820px) fits, but "Verdict", "Confirmed", "Capacity" and "Config change" break mid-word fits without scrolling, no word breaks

A long file path in a paragraph still wraps without overflowing the reply.

Before After
390×844 Before, 390px: the table squeezed into the reply, words broken after any letter After, 390px: words stay whole and the table scrolls sideways in its box
1440×900 Before, 1440px: headers and cells broken mid-word After, 1440px: the table fits the reply without broken words

@coderabbitai

coderabbitai Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

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

🧰 Additional context used
📚 Code guidelines (2)
DESIGN.md — auto-discovered
AGENTS.md — configured

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a8002f53-84c6-4cc0-9e2f-bbe6194d909e
📥 Commits

Reviewing files that changed from the base of the PR and between 3308c36 and b64b1e7.

📒 Files selected for processing (3)
  • CHANGELOG.md
  • DESIGN.md
  • src/components/ChatView.css

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Summary

Summary by CodeRabbit

  • Bug Fixes
    • Wide chat tables now scroll horizontally within their own container instead of breaking words or file paths to fit. Table columns remain wide enough to display their longest word.
    • File paths in answers can still wrap when needed.

Walkthrough

Chat table cells now wrap between words, and file paths inherit the wrapping behavior of surrounding text. The design documentation and changelog describe tables filling the reply width and scrolling within their own container when needed.

Changes

Chat table wrapping

Layer / File(s) Summary
Table wrapping and layout
src/components/ChatView.css, DESIGN.md, CHANGELOG.md
Table headers and cells use overflow-wrap: normal. File paths inherit the surrounding text’s wrapping behavior. The design documentation and changelog describe table width and horizontal scrolling.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Suggested reviewers: devswha

Merge Risk: ⚪ Minimal · up to b64b1

Wide chat tables preserve words and scroll inside their wrapper when needed, while fitting tables remain within the reply. No concrete merge-blocking risk is evident.

Architecture Summary

Architecture risk: 🔵 Low · up to b64b1

The change affects 3 systems.

Changed systems: CHANGELOG.md, DESIGN.md, src

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — CHANGELOG.md (service) was modified; 1 changed file maps to changed impact.
  • observed — DESIGN.md (service) was modified; 1 changed file maps to changed impact.
  • observed — src (ui) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in CHANGELOG.md: Adds an Unreleased fix note stating that wide chat tables scroll within their own box and columns are no longer squeezed below the width of their longest word.
  • observed — Modified behavior in DESIGN.md: Adds the table layout rules: tables fill the reply width, cells break only between words, and overflow scrolls within the table’s own box.
  • observed — Modified behavior in src/components/ChatView.css: The table-cell comment now explains that cells break only between words and may cause the table wrapper to scroll; overflow-wrap: normal replaces the prior inherited wrapping behavior for table headers and cells.
  • observed — Modified behavior in src/components/ChatView.css: The .markdown-file comment now says answer file paths break as surrounding text does, including within a paragraph or table cell.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: wide chat tables scroll instead of squeezing their columns.
Description check ✅ Passed The description covers the required Change and Validation sections. It explains the behavior and cause, lists checks and results, and includes screenshots from a UI test session.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@aNNdii
aNNdii marked this pull request as ready for review October 5, 2026 18:47
@devswha
devswha merged commit e3f1789 into devswha:main Oct 5, 2026
4 checks passed
aNNdii added a commit to aNNdii/herdr-web-ui that referenced this pull request Oct 5, 2026
aNNdii added a commit to aNNdii/herdr-web-ui that referenced this pull request Oct 5, 2026
devswha added a commit that referenced this pull request Oct 6, 2026
Its branch had appended the tab-strip sentence to the fonts entry under
[0.3.50], which was released before #479 merged. The sentence is its own
entry under [0.3.51] Fixed, and the 0.3.50 entry links #473 alone again.

Bumps package.json and herdr-plugin.toml to 0.3.51 and moves the
Unreleased notes under [0.3.51] - 2026-10-06, with the compare link. Raises the
remote PC bundle to 18: #368 adds the `take-over` capability the bridge
advertises, and #477, #483, #484, #485 and #486 change what the bridge reads
(transcripts, prompts, process start times, a pane's Codex store), so a
remote PC on bundle 17 keeps the old behaviour until its bridge is updated.
Push the `remote-v18` tag and let the bundle workflow publish before
running release.yml.

Carries #368 #477 #479 #481 #482 #483 #484 #485 #486 #487

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@aNNdii
aNNdii deleted the fix/chat-table-scroll branch October 16, 2026 20:14
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.

2 participants