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

@ -218,7 +218,14 @@ export default function PostRelaySelector({
</div>
<Drawer open={isDrawerOpen} onOpenChange={setIsDrawerOpen}>
<DrawerOverlay onClick={() => setIsDrawerOpen(false)} />
<DrawerContent hideOverlay>{content}</DrawerContent>
<DrawerContent className="max-h-[80vh]" hideOverlay>
<div
className="overflow-y-auto overscroll-contain py-2"
style={{ touchAction: 'pan-y' }}
>
{content}
</div>
</DrawerContent>
</Drawer>
</>
)