Skip to content

Commit 5c5711f

Browse files
committed
fix: keep tool card actions inline
1 parent 1e3542b commit 5c5711f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎ui/src/styles/chat/tool-cards.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@
820820
font-size: var(--control-ui-text-sm);
821821
transform: translateY(0.8px);
822822
color: color-mix(in srgb, var(--text) 76%, var(--muted) 24%);
823-
flex: 1 1 18rem;
823+
flex: 0 1 auto;
824824
max-width: 100%;
825825
overflow: visible;
826826
overflow-wrap: anywhere;

‎ui/src/styles/chat/tool-cards.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ describe("chat tool card styles", () => {
3030
expect(css).toContain(".chat-tool-msg-summary__preview");
3131
expect(css).toContain("font-size: var(--control-ui-text-sm);");
3232
expect(css).toContain("transform: translateY(0.8px);");
33+
expect(css).toContain("flex: 0 1 auto;");
3334
expect(css).toContain("height: 20px;");
3435
expect(css).toContain("min-height: 20px;");
3536
expect(css).not.toContain(".chat-tool-msg-summary__names {\n text-align: center;");

0 commit comments

Comments
 (0)