From e73bc81a7319c54c05928bfe177eb15bbbf3c952 Mon Sep 17 00:00:00 2001 From: dotta Date: Sun, 22 Mar 2026 11:02:04 -0500 Subject: [PATCH] fix: prevent documents row from causing horizontal scroll on mobile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Shorten button labels ("New document" → "New", "Upload attachment" → "Upload") on small screens - Add min-w-0 and shrink-0 to flex containers and items to prevent overflow - Truncate document revision text on narrow viewports - Mark chevron, key badge, and action buttons as shrink-0 Co-Authored-By: Paperclip --- ui/src/components/IssueDocumentsSection.tsx | 28 +++++++++++---------- ui/src/pages/IssueDetail.tsx | 7 +++++- 2 files changed, 21 insertions(+), 14 deletions(-) diff --git a/ui/src/components/IssueDocumentsSection.tsx b/ui/src/components/IssueDocumentsSection.tsx index 0f112062..f61ddd75 100644 --- a/ui/src/components/IssueDocumentsSection.tsx +++ b/ui/src/components/IssueDocumentsSection.tsx @@ -519,21 +519,23 @@ export function IssueDocumentsSection({ return (
{isEmpty && !draft?.isNew ? ( -
+
{extraActions} -
) : ( -
-

Documents

-
+
+

Documents

+
{extraActions} -
@@ -634,29 +636,29 @@ export function IssueDocumentsSection({ >
-
+
- + {doc.key} rev {doc.latestRevisionNumber} • updated {relativeTime(doc.updatedAt)}
{showTitle &&

{doc.title}

}
-
+
);