From cc84af28b65a82aff5e7c55eee79ce8dfc6d207d Mon Sep 17 00:00:00 2001 From: Bowen Liang Date: Thu, 20 Aug 2026 01:25:33 +0800 Subject: [PATCH] browser: cap tool description body at ~8 rows with scroll MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A 320px cap (matching the raw JSON block) swallowed most real tool descriptions whole — they read as a wall of text instead of a header-style prose summary. 160px gives ~8 lines visible at the body font, so a reader sees the gist at a glance and scrolls for the rest. scrollbar-width: thin keeps the cap from looking heavy when the body stays short enough to fit. --- src/client/styles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/styles.ts b/src/client/styles.ts index c8dee70..9305d87 100644 --- a/src/client/styles.ts +++ b/src/client/styles.ts @@ -232,7 +232,7 @@ export const STYLES = [ '.lc-ts-card-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 11px; font-weight: 600; color: var(--dsw-alias-label-secondary); border-bottom: 1px solid var(--dsw-alias-border-l1); }', '.lc-ts-card-head b { color: var(--dsw-alias-label-primary); }', '.lc-ts-card-count { margin-left: auto; }', - '.lc-ts-desc-body { margin: 0; padding: 8px 10px; color: var(--dsw-alias-label-primary); font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }', + '.lc-ts-desc-body { margin: 0; padding: 8px 10px; color: var(--dsw-alias-label-primary); font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; max-height: 160px; overflow-y: auto; scrollbar-width: thin; }', // Grid: name + type + required chip + description. Columns wrap on narrow // rows; the description cell spans the full second row so a long blurb // never breaks the one-line rhythm of name/type/required.