Fix mobile horizontal overflow on issue page document/attachment buttons

Add flex-wrap to the flex containers holding the "Upload attachment" and
"New document" buttons so they wrap to a new line on narrow screens
instead of forcing horizontal scroll.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
committed 2026-03-15 20:24:13 -05:00
1 parent c5cc191a08
commit 31a264465a
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -519,7 +519,7 @@ export function IssueDocumentsSection({
return (
<div className="space-y-3">
{isEmpty && !draft?.isNew ? (
<div className="flex items-center justify-end gap-2">
<div className="flex flex-wrap items-center justify-end gap-2">
{extraActions}
<Button variant="outline" size="sm" onClick={beginNewDocument}>
<Plus className="mr-1.5 h-3.5 w-3.5" />
@@ -527,9 +527,9 @@ export function IssueDocumentsSection({
</Button>
</div>
) : (
<div className="flex items-center justify-between gap-2">
<div className="flex flex-wrap items-center justify-between gap-2">
<h3 className="text-sm font-medium text-muted-foreground">Documents</h3>
<div className="flex items-center gap-2">
<div className="flex flex-wrap items-center gap-2">
{extraActions}
<Button variant="outline" size="sm" onClick={beginNewDocument}>
<Plus className="mr-1.5 h-3.5 w-3.5" />
+1 -1
View File
@@ -882,7 +882,7 @@ export function IssueDetail() {
}}
onDrop={(evt) => void handleAttachmentDrop(evt)}
>
<div className="flex items-center justify-between gap-2">
<div className="flex flex-wrap items-center justify-between gap-2">
<h3 className="text-sm font-medium text-muted-foreground">Attachments</h3>
{attachmentUploadButton}
</div>