From 2f160ba59ae7a84e014d7c0e67690d110058aa03 Mon Sep 17 00:00:00 2001 From: shamnadxyz <155352697+shamnadxyz@users.noreply.github.com> Date: Mon, 12 Oct 2026 13:50:16 +0530 Subject: [PATCH] ui: fix text attachment preview overflow (#29898) * ui: fix text attachment preview overflow Set the max height to 80dvh and the max width to full on screens below medium and 80vw from medium onward. * style: run formatter --- .../ChatAttachmentsPreviewCurrentItemText.svelte | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tools/ui/src/lib/components/app/chat/ChatAttachments/ChatAttachmentsPreview/ChatAttachmentsPreviewCurrentItem/ChatAttachmentsPreviewCurrentItemText.svelte b/tools/ui/src/lib/components/app/chat/ChatAttachments/ChatAttachmentsPreview/ChatAttachmentsPreviewCurrentItem/ChatAttachmentsPreviewCurrentItemText.svelte index 5977523ac..1fa1d5e8a 100644 --- a/tools/ui/src/lib/components/app/chat/ChatAttachments/ChatAttachmentsPreview/ChatAttachmentsPreviewCurrentItem/ChatAttachmentsPreviewCurrentItemText.svelte +++ b/tools/ui/src/lib/components/app/chat/ChatAttachments/ChatAttachmentsPreview/ChatAttachmentsPreviewCurrentItem/ChatAttachmentsPreviewCurrentItemText.svelte @@ -10,12 +10,7 @@ {#if displayTextContent} -