Skip to content

Commit b957d1c

Browse files
committed
feat: Expand Tools menu dropdown vertically instead of scroll (fixes #785)
1 parent 9a93ae3 commit b957d1c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

components/header.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -308,9 +308,12 @@ function DropdownMenu({
308308
style={{ pointerEvents: 'auto' }}
309309
>
310310
{/* Menu Content */}
311-
<div className="bg-background/95 backdrop-blur-xl border border-border/80 rounded-xl shadow-2xl shadow-black/20 dark:shadow-black/50 overflow-y-auto w-[420px] max-w-[90vw] max-h-[calc(100vh-120px)] ring-1 ring-white/10">
312-
<div className="p-6 bg-linear-to-br from-background/50 to-muted/20">
313-
<div className="grid grid-cols-1 gap-6">
311+
<div className={cn(
312+
'bg-background/95 backdrop-blur-xl border border-border/80 rounded-xl shadow-2xl shadow-black/20 dark:shadow-black/50 ring-1 ring-white/10',
313+
sections.length > 1 ? 'w-[680px] max-w-[90vw]' : 'w-[340px] max-w-[90vw]'
314+
)}>
315+
<div className="p-5 bg-linear-to-br from-background/50 to-muted/20">
316+
<div className={cn('grid gap-6', sections.length > 1 ? 'grid-cols-2' : 'grid-cols-1')}>
314317
{sections.map((section, sectionIndex) => (
315318
<div key={sectionIndex} className="space-y-3">
316319
{/* Section Header */}

0 commit comments

Comments
 (0)