fix(web): a table column of linked paths keeps a readable width

The first commit left one case of the same squeeze. Codeman turns the
paths in an answer into links, and a linked path keeps
`word-break: break-all` so that it can wrap anywhere. That lets the
browser count every letter as a break point when it sizes the column,
so in a table whose headers fill the width, a column of paths shrank
to three or four letters per line. A cell that holds a linked path now
has a minimum width of 6em. Other cells keep their natural width, so a
narrow column such as row numbers stays narrow.

On a 390 px view in Firefox and Chromium, a path column went from 48 px
to 83 px, and a `#` column kept its 32 px.

The comment on the cell rule also said wrongly that a cell breaks a word
wider than its column. In automatic table layout a column is never
narrower than its longest word, so that never happens, and the comment
now says that.

The test reads every rule that names a selector, in styles.css and
mobile.css, with comments removed first, so a later override fails it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Michael GrundbergandClaude Opus 5.5 committed 2026-11-30 13:50:00 +01:00
1 parent 2ea593c2e2
commit 5588a54e3f
2 files changed
+49 -24

No files matched your search

+10 -4
View File
@@ -14119,13 +14119,19 @@ html:is([data-skin="paper-gray"], [data-skin="solarized-light"], [data-skin="cat
text-align: start;
vertical-align: top;
white-space: normal;
/* A cell breaks a word only when the word alone is wider than the column. The `anywhere`
that cells inherit from .rv-text also lets the table count every letter as a break
point when it sizes its columns, so a column beside wide headers shrank to one letter
per line. */
/* A cell wraps between words, so its column is never narrower than its longest word.
With the `anywhere` that cells inherit from .rv-text, the table counted every letter
as a break point when it sized its columns, and a column beside wide headers shrank
to one letter per line. */
overflow-wrap: break-word;
}
/* A linked path keeps `word-break: break-all` (the a.rv-path rule below), which lets its
column shrink the same way. A floor keeps about ten characters of the path per line. */
.rv-table-wrap td:has(a.rv-path:not(.rv-path-link)) {
min-width: 6em;
}
.rv-text th:last-child, .rv-text td:last-child,
.response-viewer-body > table th:last-child,
.response-viewer-body > table td:last-child,