惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
爱范儿
爱范儿
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
J
Java Code Geeks
Vercel News
Vercel News
aimingoo的专栏
aimingoo的专栏
T
Tailwind CSS Blog
罗磊的独立博客
B
Blog
博客园_首页
A
About on SuperTechFans
有赞技术团队
有赞技术团队
V
V2EX
U
Unit 42
I
InfoQ
IT之家
IT之家
博客园 - 司徒正美
阮一峰的网络日志
阮一峰的网络日志
博客园 - 叶小钗
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Stack Overflow Blog
Stack Overflow Blog
The Cloudflare Blog
H
Help Net Security

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix: vertically center tool summary labels · openclaw/ope...
shakkernerd · 2026-05-31 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -234,7 +234,10 @@

234234

.chat-tool-msg-summary__error-badge {

235235

display: inline-flex;

236236

align-items: center;

237+

align-self: center;

237238

gap: 3px;

239+

min-height: 20px;

240+

box-sizing: border-box;

238241

padding: 1px 6px;

239242

margin-left: auto;

240243

border-radius: 999px;

@@ -244,7 +247,7 @@

244247

font-weight: 600;

245248

letter-spacing: 0.04em;

246249

text-transform: uppercase;

247-

line-height: 1.4;

250+

line-height: 1;

248251

flex-shrink: 0;

249252

}

250253

@@ -649,17 +652,22 @@

649652

margin-top: 6px;

650653

}

651654
655+

.chat-bubble--tool-shell > .chat-tool-msg-collapse {

656+

margin-top: 0;

657+

}

658+
652659

.chat-tool-msg-summary {

653660

display: flex;

654-

align-items: flex-start;

661+

align-items: center;

662+

align-content: center;

655663

flex-wrap: wrap;

656-

gap: 8px;

664+

gap: 12px;

657665

min-width: 0;

658666

box-sizing: border-box;

659667

padding: 8px 11px;

660668

cursor: pointer;

661669

font-size: var(--control-ui-text-sm);

662-

line-height: 1.4;

670+

line-height: 1;

663671

color: var(--text);

664672

user-select: none;

665673

list-style: none;

@@ -675,13 +683,24 @@

675683

text-align: left;

676684

appearance: none;

677685

-webkit-appearance: none;

678-

font: inherit;

686+

font-family: inherit;

679687

transition:

680688

color 150ms ease,

681689

background 150ms ease,

682690

border-color 150ms ease;

683691

}

684692
693+

.chat-tool-msg-summary svg,

694+

.chat-tool-msg-summary__icon {

695+

flex-shrink: 0;

696+

}

697+
698+

.chat-tool-msg-summary span {

699+

display: inline-flex;

700+

align-items: center;

701+

line-height: var(--control-ui-text-sm);

702+

}

703+
685704

.chat-tool-msg-summary[type="button"] {

686705

background:

687706

linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 34%),

@@ -705,8 +724,13 @@

705724
706725

.chat-tool-msg-summary::before {

707726

content: "▸";

727+

display: inline-flex;

728+

align-items: center;

729+

justify-content: center;

730+

width: 8px;

731+

height: 20px;

708732

font-size: 10px;

709-

margin-top: 3px;

733+

line-height: 1;

710734

flex-shrink: 0;

711735

transition: transform 150ms ease;

712736

}

@@ -757,17 +781,16 @@

757781

display: inline-flex;

758782

align-items: center;

759783

justify-content: center;

760-

width: 14px;

761-

height: 14px;

762-

margin-top: 2px;

784+

align-self: center;

785+

width: 18px;

786+

height: 18px;

763787

color: var(--accent);

764788

opacity: 0.75;

765-

flex-shrink: 0;

766789

}

767790
768791

.chat-tool-msg-summary__icon svg {

769-

width: 14px;

770-

height: 14px;

792+

width: 18px;

793+

height: 18px;

771794

stroke: currentColor;

772795

fill: none;

773796

stroke-width: 1.5px;

@@ -776,6 +799,8 @@

776799

}

777800
778801

.chat-tool-msg-summary__label {

802+

align-self: center;

803+

min-height: 20px;

779804

font-weight: 600;

780805

color: var(--text);

781806

flex: 0 1 auto;

@@ -789,8 +814,11 @@

789814
790815

.chat-tool-msg-summary__names,

791816

.chat-tool-msg-summary__preview {

817+

align-self: center;

818+

min-height: 20px;

792819

font-family: var(--mono);

793-

font-size: var(--control-ui-text-xs);

820+

font-size: var(--control-ui-text-sm);

821+

transform: translateY(0.8px);

794822

color: color-mix(in srgb, var(--text) 76%, var(--muted) 24%);

795823

flex: 1 1 18rem;

796824

max-width: 100%;

Original file line numberDiff line numberDiff line change

@@ -8,13 +8,31 @@ function readToolCardsCss(): string {

88

describe("chat tool card styles", () => {

99

it("keeps collapsed tool summaries readable without premature ellipsis", () => {

1010

const css = readToolCardsCss();

11+

const summaryRule = css.match(/\.chat-tool-msg-summary\s*\{[^}]*\}/)?.[0] ?? "";

1112
1213

expect(css).toContain(".chat-tool-msg-summary {");

14+

expect(css).toContain("align-items: center;");

15+

expect(css).toContain("align-content: center;");

16+

expect(css).toContain(".chat-bubble--tool-shell > .chat-tool-msg-collapse {\n margin-top: 0;");

1317

expect(css).toContain("flex-wrap: wrap;");

18+

expect(css).toContain("gap: 12px;");

1419

expect(css).toContain("font-size: var(--control-ui-text-sm);");

20+

expect(css).toContain(

21+

".chat-tool-msg-summary svg,\n.chat-tool-msg-summary__icon {\n flex-shrink: 0;",

22+

);

23+

expect(css).toContain(

24+

".chat-tool-msg-summary span {\n display: inline-flex;\n align-items: center;\n line-height: var(--control-ui-text-sm);",

25+

);

26+

expect(summaryRule).toContain("font-family: inherit;");

27+

expect(summaryRule).not.toContain("font: inherit;");

1528

expect(css).toContain("color: var(--text);");

1629

expect(css).toMatch(/\.chat-tool-msg-summary__names\s*,/);

1730

expect(css).toContain(".chat-tool-msg-summary__preview");

31+

expect(css).toContain("font-size: var(--control-ui-text-sm);");

32+

expect(css).toContain("transform: translateY(0.8px);");

33+

expect(css).toContain("height: 20px;");

34+

expect(css).toContain("min-height: 20px;");

35+

expect(css).not.toContain(".chat-tool-msg-summary__names {\n text-align: center;");

1836

expect(css).toContain("overflow-wrap: anywhere;");

1937

expect(css).toContain("text-overflow: clip;");

2038

expect(css).toContain("white-space: normal;");