fix(mobile): improved context menu dismissal on iOS and removed white bar on Android
This commit is contained in:
@@ -6,6 +6,6 @@
|
|||||||
|
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
@apply h-full w-full overflow-hidden bg-base-100 text-base-content;
|
@apply min-h-[100dvh] w-full overflow-hidden bg-base-100 text-base-content overscroll-behavior-y-none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -25,7 +25,10 @@ pub fn ContextMenu(
|
|||||||
// Backdrop to catch clicks outside
|
// Backdrop to catch clicks outside
|
||||||
<div
|
<div
|
||||||
class="fixed inset-0 z-[99] cursor-default"
|
class="fixed inset-0 z-[99] cursor-default"
|
||||||
|
role="button"
|
||||||
|
tabindex="-1"
|
||||||
on:click=move |_| on_close.call(())
|
on:click=move |_| on_close.call(())
|
||||||
|
on:touchstart=move |_| on_close.call(())
|
||||||
on:contextmenu=move |e| e.prevent_default()
|
on:contextmenu=move |e| e.prevent_default()
|
||||||
></div>
|
></div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user