File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ function handleThemeClick() {
5050<template >
5151 <Teleport to =" body" >
5252 <div
53- class =" sm:hidden fixed inset-x-0 bottom-0 z-50 bg-bg border-t border-border flex items-center gap-2 px-3 h-14 transition-transform duration-200 ease-out motion-reduce:transition-none"
53+ class =" sm:hidden fixed inset-x-0 bottom-0 z-50 bg-bg border-t border-border flex items-center gap-2 px-3 h-14 pb-[env(safe-area-inset-bottom)] transition-transform duration-200 ease-out motion-reduce:transition-none"
5454 :class =" hidden ? 'translate-y-full' : 'translate-y-0'"
5555 :style =" { '--mobile-bar-height': '3.5rem' }"
5656 >
Original file line number Diff line number Diff line change @@ -17,20 +17,21 @@ function handleOpenCommandPalette() {
1717 nextTick (() => openCommandPalette ())
1818}
1919
20+ function showDialogAfterClose(selector : string ) {
21+ const modal = document .querySelector <HTMLDialogElement >(selector )
22+ if (! modal ) return
23+ close ()
24+ nextTick (() => {
25+ if (! modal .open ) modal .showModal ()
26+ })
27+ }
28+
2029function handleShowConnector() {
21- const modal = document .querySelector <HTMLDialogElement >(' #connector-modal' )
22- if (modal ) {
23- close ()
24- modal .showModal ()
25- }
30+ showDialogAfterClose (' #connector-modal' )
2631}
2732
2833function handleShowAuth() {
29- const modal = document .querySelector <HTMLDialogElement >(' #auth-modal' )
30- if (modal ) {
31- close ()
32- modal .showModal ()
33- }
34+ showDialogAfterClose (' #auth-modal' )
3435}
3536
3637const route = useRoute ()
You can’t perform that action at this time.
0 commit comments