fix: drawer fix
This commit is contained in:
@@ -313,7 +313,11 @@ export function ComposePost({
|
||||
|
||||
if (isMobile) {
|
||||
return (
|
||||
<Drawer open={open} onOpenChange={(o) => !o && onClose()}>
|
||||
<Drawer
|
||||
open={open}
|
||||
repositionInputs={false}
|
||||
onOpenChange={(o) => !o && onClose()}
|
||||
>
|
||||
<DrawerContent className="bg-card border-border">
|
||||
<DrawerHeader className="text-left border-b border-border pb-4">
|
||||
<DrawerTitle>Share to feed</DrawerTitle>
|
||||
|
||||
@@ -100,6 +100,11 @@ export function MentionsDrawer({
|
||||
<Drawer
|
||||
open={open}
|
||||
direction={direction}
|
||||
// Let the browser handle the on-screen keyboard. vaul's default
|
||||
// input-repositioning resizes/translates the sheet and gets stuck on
|
||||
// iOS (stays enlarged after blur, drags dismiss it). The add-field sits
|
||||
// at the top of the scrollable body, so it stays visible without it.
|
||||
repositionInputs={false}
|
||||
onOpenChange={(o) => {
|
||||
if (!o) onClose();
|
||||
}}
|
||||
|
||||
@@ -133,6 +133,9 @@ export function UserListDrawer({
|
||||
<Drawer
|
||||
open={open}
|
||||
direction={direction}
|
||||
// Browser-native keyboard handling — vaul's input repositioning gets
|
||||
// stuck on iOS for the search field.
|
||||
repositionInputs={false}
|
||||
onOpenChange={(o) => {
|
||||
if (!o) onClose();
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user