fix(table-chart): wrap mode now breaks long URLs/IDs instead of overflowing into adjacent columns#2234
fix(table-chart): wrap mode now breaks long URLs/IDs instead of overflowing into adjacent columns#2234teeohhem wants to merge 4 commits into
Conversation
The Bootstrap removal refactor (#1347) deleted .text-break, .align-top, and the .align-{middle,bottom} utility classes from _bootstrap-utilities.scss but left HDXMultiSeriesTableChart.tsx and DBRowTable.tsx still referencing .text-break and .align-top by name. With .text-break undefined, toggling wrap mode on a Table chart cell containing a long URL/identifier without whitespace leaves the cell with only overflow: hidden and default word-break: normal. The browser can't break the string, partial fragments leak across cell boundaries during fallback rendering, and the visible result is text appearing to overlap into adjacent columns. Re-add the missing utility classes, and as a belt-and-suspenders containment add overflow: hidden to <td> and max-width: 100% to the inner cell <div> in HDXMultiSeriesTableChart so layout can never push content past the cell boundary regardless of word-break behavior.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: b288341 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
<!-- claude-code-review --> PR Review✅ No critical issues found. The fix is focused and correct: the utility classes ( Minor nits (non-blocking):
|
🔵 Tier 2 — Low RiskSmall, isolated change with no API route or data model modifications. Why this tier:
Review process: AI review + quick human skim (target: 5–15 min). Reviewer validates AI assessment and checks for domain-specific concerns. Stats
|
E2E Test Results✅ All tests passed • 168 passed • 3 skipped • 1253s
Tests ran across 4 shards in parallel. |
Deep Review✅ No critical issues found. 🟡 P2 -- recommended
🔵 P3 nitpicks (3)
Reviewers (8): correctness, testing, maintainability, project-standards, agent-native, learnings, kieran-typescript, previous-comments. Testing gaps:
|
PR Review✅ No critical issues found. Small, well-scoped CSS regression fix. A few minor notes (non-blocking):
|
Summary
.text-break,.align-top,.align-middle,.align-bottomutility classes to_bootstrap-utilities.scss. These were referenced byHDXMultiSeriesTableChartandDBRowTablebut dropped during the Bootstrap removal refactor (Refactor: Remove bootstrap, adopt semantic tokens, and improve Mantine UI usage #1347), leaving wrap mode silently broken.overflow: hiddento<td>andmax-width: 100%to the inner cell<div>inHDXMultiSeriesTableChartas belt-and-suspenders containment for long unbreakable strings.Why
With
.text-breakundefined, toggling wrap mode on a Table chart cell containing a long URL/identifier without whitespace leaves the cell with onlyoverflow: hiddenand defaultword-break: normal. The browser can't break the string, partial fragments leak across cell boundaries during fallback rendering, and the visible result is text appearing to overlap into adjacent columns. Reproducible with many narrow columns + URLs likelogin.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=….Test plan
DBTableChart.test.tsxstill passesBefore:

After:

Ref: HDX-4180