@@ -2193,14 +2193,13 @@ code {
21932193 }
21942194}
21952195
2196- /* Diagnostics-style tables: row separators only, uppercase headers, and a
2197- scroll-fade container for horizontal overflow. The root chat-markdown
2198- wrapping rules (overflow-wrap: anywhere) would let columns shrink to single
2199- characters and defeat the overflow — restore word-boundary wrapping so the
2200- min column width is the longest word. */
2196+ /* Diagnostics-style tables: row separators only, and a scroll-fade container
2197+ for horizontal overflow. Cells wrap and the table fits its lane. The root
2198+ chat-markdown wrapping rules (overflow-wrap: anywhere) would let columns
2199+ shrink to single characters, so restore word-boundary wrapping: the min
2200+ column width is the longest word, and only wider content scrolls . */
22012201. chat-markdown table {
22022202 width : 100% ;
2203- min-width : max-content;
22042203 border-collapse : collapse;
22052204 overflow-wrap : normal;
22062205 word-break : normal;
@@ -2230,48 +2229,21 @@ code {
22302229 border-bottom : 1px solid color-mix ( in srgb, var ( --contrast-border ) 60% , transparent) ;
22312230 padding-block : 0.55rem ;
22322231 font-weight : 600 ;
2233- white-space : nowrap;
22342232}
22352233
22362234. chat-markdown tbody td {
22372235 border-bottom : 1px solid color-mix ( in srgb, var ( --contrast-border ) 60% , transparent) ;
22382236}
22392237
2240- /* Collapsed (default): single-line cells truncate so arbitrary chat content
2241- cannot blow the column out; the footer toggle expands cells to wrap. */
2242- . chat-markdown . chat-markdown-table-container [data-expanded = "false" ] th ,
2243- . chat-markdown . chat-markdown-table-container [data-expanded = "false" ] td {
2244- overflow : hidden;
2238+ /* Caps a long path, URL, or chip at 24rem; text past the cap wraps. */
2239+ . chat-markdown : is ( th , td ) {
22452240 max-width : 24rem ;
2246- text-overflow : ellipsis;
2247- white-space : nowrap;
2248- }
2249-
2250- . chat-markdown . chat-markdown-table-container [data-expanded = "true" ] td {
2251- max-width : 24rem ;
2252- overflow-wrap : anywhere;
2253- }
2254-
2255- /* Fit expanded tables to wide timeline lanes; narrow lanes keep horizontal
2256- scrolling so prose columns remain readable. */
2257- @container chat-lane ( min-width : 36rem ) {
2258- . chat-markdown . chat-markdown-table-container [data-expanded = "true" ] table {
2259- min-width : 0 ;
2260- }
2261-
2262- . chat-markdown . chat-markdown-table-container [data-expanded = "true" ] th {
2263- white-space : normal;
2264- }
2265-
2266- . chat-markdown . chat-markdown-table-container [data-expanded = "true" ] td {
2267- overflow-wrap : break-word;
2268- }
2241+ overflow-wrap : break-word;
22692242}
22702243
22712244/* Formula cells keep their natural width and scroll with the table. */
2272- . chat-markdown . chat-markdown-table-container td : has ( [data-markdown-math ]) {
2245+ . chat-markdown : is ( th , td ) : has ( [data-markdown-math ]) {
22732246 max-width : none;
2274- overflow : visible;
22752247}
22762248
22772249: root {
0 commit comments