Skip to content

Commit 7999040

Browse files
committed
fix: use explicit max-height for list scroll instead of flex-1
flex-1 + min-h-0 + overflow-y-auto was not constraining the list. Replaced with explicit maxHeight: min(400px, 50vh). Simple, works.
1 parent 9492a93 commit 7999040

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/components/DirectoryPicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export function DirectoryPicker({
128128
<SortButton label="Functions" sortKey="functions" current={sortBy} asc={sortAsc} onToggle={toggleSort} className="w-24 text-right" />
129129
</div>
130130

131-
<div className="flex-1 min-h-0 overflow-y-auto">
131+
<div className="overflow-y-auto" style={{ maxHeight: 'min(400px, 50vh)' }}>
132132
<motion.div
133133
className="divide-y divide-border"
134134
initial="hidden"

0 commit comments

Comments
 (0)