From 085f66daeddac5d5915f15a02439e39a0af9f93f Mon Sep 17 00:00:00 2001 From: David Hill Date: Fri, 20 Mar 2026 13:07:17 +0000 Subject: [PATCH] tweak(ui): fit session attachment card width --- packages/ui/src/components/message-part.css | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/ui/src/components/message-part.css b/packages/ui/src/components/message-part.css index f89dd3bbab..24739f0e3e 100644 --- a/packages/ui/src/components/message-part.css +++ b/packages/ui/src/components/message-part.css @@ -62,9 +62,10 @@ } &[data-type="file"] { - width: min(220px, 100%); + width: fit-content; + max-width: min(260px, 100%); height: 48px; - padding: 0 10px; + padding: 0 18px 0 10px; background: var(--background-stronger); } } @@ -90,7 +91,8 @@ } [data-slot="user-message-attachment-file"] { - width: 100%; + width: fit-content; + max-width: 100%; min-width: 0; display: flex; align-items: center; @@ -105,6 +107,7 @@ [data-slot="user-message-attachment-name"] { min-width: 0; + max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;