fix: folder picker dialog content overflow on narrow windows

- Add overflow-hidden to dialog to constrain child components
- Change path display from truncate to horizontal scroll so long
  Windows paths (e.g., D:\projects\very\deep\path) remain readable

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
7418andClaude Opus 4.6 committed 2026-02-13 17:35:48 +08:00
1 parent d446da9717
commit 5dde1e5009
1 file changed
+2 -2
+2 -2
View File
@@ -97,7 +97,7 @@ export function FolderPicker({ open, onOpenChange, onSelect, initialPath }: Fold
return (
<Dialog open={open} onOpenChange={onOpenChange}>
<DialogContent className="max-w-lg">
<DialogContent className="max-w-lg overflow-hidden">
<DialogHeader>
<DialogTitle>Select Project Folder</DialogTitle>
</DialogHeader>
@@ -153,7 +153,7 @@ export function FolderPicker({ open, onOpenChange, onSelect, initialPath }: Fold
</DropdownMenuContent>
</DropdownMenu>
)}
<span className="truncate text-xs font-mono text-muted-foreground">
<span className="min-w-0 overflow-x-auto whitespace-nowrap text-xs font-mono text-muted-foreground">
{currentDir}
</span>
</div>