feat: enable scrolling for overflowing drawer content

This commit is contained in:
codytseng 2025-09-24 11:15:35 +08:00
parent b73b3512f3
commit 83c95782bd
5 changed files with 50 additions and 42 deletions

View file

@ -20,7 +20,10 @@ export default function FeedButton({ className }: { className?: string }) {
<FeedSwitcherTrigger className={className} onClick={() => setOpen(true)} />
<Drawer open={open} onOpenChange={setOpen}>
<DrawerContent className="max-h-[80vh]">
<div className="py-4 px-2 overflow-auto">
<div
className="overflow-y-auto overscroll-contain py-2 px-4"
style={{ touchAction: 'pan-y' }}
>
<FeedSwitcher close={() => setOpen(false)} />
</div>
</DrawerContent>