From e4eddbf3f2233ee6a775d4ca57929088f2d1edb3 Mon Sep 17 00:00:00 2001 From: bowenliang123 Date: Fri, 28 Aug 2026 11:47:59 +0800 Subject: [PATCH] style(browser): stop markdown detail cards from doubling line breaks The shared MarkdownText pipeline emits cosmetic newline text nodes between blocks and after each
, 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. --- src/client/styles.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/styles.css b/src/client/styles.css index 43f9c5d..974877d 100644 --- a/src/client/styles.css +++ b/src/client/styles.css @@ -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: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-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; inside a detail card the base size sits one step ABOVE the raw text