fix: keep tool card actions inline · openclaw/openclaw@5c5711f
openclaw
·
2026-05-31
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -820,7 +820,7 @@
|
820 | 820 | font-size: var(--control-ui-text-sm); |
821 | 821 | transform: translateY(0.8px); |
822 | 822 | color: color-mix(in srgb, var(--text) 76%, var(--muted) 24%); |
823 | | -flex: 1 1 18rem; |
| 823 | +flex: 0 1 auto; |
824 | 824 | max-width: 100%; |
825 | 825 | overflow: visible; |
826 | 826 | overflow-wrap: anywhere; |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -30,6 +30,7 @@ describe("chat tool card styles", () => {
|
30 | 30 | expect(css).toContain(".chat-tool-msg-summary__preview"); |
31 | 31 | expect(css).toContain("font-size: var(--control-ui-text-sm);"); |
32 | 32 | expect(css).toContain("transform: translateY(0.8px);"); |
| 33 | +expect(css).toContain("flex: 0 1 auto;"); |
33 | 34 | expect(css).toContain("height: 20px;"); |
34 | 35 | expect(css).toContain("min-height: 20px;"); |
35 | 36 | expect(css).not.toContain(".chat-tool-msg-summary__names {\n text-align: center;"); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。