mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
feat: add vertical scrolling to push mode top/bottom layouts
- Change container overflow from 'overflow-hidden' to 'overflow-y-auto' for horizontal push mode - Ensures all tiles remain accessible when content exceeds viewport height - Particularly important for mobile (2 columns, 5 rows) and tablet (5 columns, 2 rows) layouts - Maintains consistent scrolling behavior across all navigation modes
This commit is contained in:
@@ -480,7 +480,7 @@ export const TopNavigation: React.FC<TopNavigationProps> = ({ isExpanded, setIsE
|
||||
? 'w-full h-full flex items-center justify-center overflow-hidden' // Always centered for overlay mode
|
||||
: isVertical
|
||||
? 'h-full'
|
||||
: 'w-full overflow-hidden';
|
||||
: 'w-full overflow-y-auto'; // Enable vertical scrolling for horizontal push mode
|
||||
|
||||
return (
|
||||
<div className={`${isOverlayMode ? 'bg-transparent' : 'bg-background-muted'} ${containerClasses} relative z-[9998]`}>
|
||||
|
||||
Reference in New Issue
Block a user