feat: enable scrolling for overflowing drawer content
This commit is contained in:
parent
b73b3512f3
commit
83c95782bd
5 changed files with 50 additions and 42 deletions
|
|
@ -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>
|
||||
</>
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue