style(browser): stop markdown detail cards from doubling line breaks

The shared MarkdownText pipeline emits cosmetic newline text nodes
between blocks and after each <br>, designed to collapse under the
default white-space. The card's pre-line made every one of them
visible, so hard breaks rendered twice and block gaps stacked an
anonymous blank line on top of the paragraph margins.
This commit is contained in:
bowenliang123 committed 2026-08-28 11:47:59 +08:00
1 parent 06d1a5df7c
commit e4eddbf3f2
1 file changed
+1 -1
+1 -1
View File
@@ -410,7 +410,7 @@ button.lc-brief-row-link { cursor: pointer; }
.lc-rich-seg-btn { border: 0; background: transparent; color: var(--dsw-alias-label-secondary); font-size: 11px; line-height: 1; padding: 3px 8px; border-radius: 5px; cursor: pointer; font-family: inherit; } .lc-rich-seg-btn { border: 0; background: transparent; color: var(--dsw-alias-label-secondary); font-size: 11px; line-height: 1; padding: 3px 8px; border-radius: 5px; cursor: pointer; font-family: inherit; }
.lc-rich-seg-btn:hover { color: var(--dsw-alias-label-primary); } .lc-rich-seg-btn:hover { color: var(--dsw-alias-label-primary); }
.lc-rich-seg-on, .lc-rich-seg-on:hover { background: var(--dsw-alias-button-primary-fill); color: var(--dsw-alias-label-primary-foreground); } .lc-rich-seg-on, .lc-rich-seg-on:hover { background: var(--dsw-alias-button-primary-fill); color: var(--dsw-alias-label-primary-foreground); }
.lc-ts-desc-md { padding: 4px 10px; color: var(--dsw-alias-label-primary); font-size: 12px; line-height: 1.55; word-break: break-word; overflow-wrap: anywhere; min-width: 0; white-space: pre-line; max-height: 320px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; } .lc-ts-desc-md { padding: 4px 10px; color: var(--dsw-alias-label-primary); font-size: 12px; line-height: 1.55; word-break: break-word; overflow-wrap: anywhere; min-width: 0; max-height: 320px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; }
/* /*
The shared markdown renderer sizes its root/headings for chat bubbles; The shared markdown renderer sizes its root/headings for chat bubbles;
inside a detail card the base size sits one step ABOVE the raw text inside a detail card the base size sits one step ABOVE the raw text