browser: cap tool description body at ~8 rows with scroll
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.
This commit is contained in:
1 parent
d1e0fbd507
commit
cc84af28b6
1 file changed
+1
-1
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user