ui fix ios

This commit is contained in:
beo3000 2026-02-21 20:02:50 +01:00
parent 65efe0c540
commit 28221232d6
3 changed files with 13 additions and 0 deletions

View File

@ -71,6 +71,18 @@
function closeSidebar() {
sidebarOpen = false;
}
$effect(() => {
if (sidebarOpen) {
document.body.style.overflow = 'hidden';
document.body.style.position = 'fixed';
document.body.style.width = '100%';
} else {
document.body.style.overflow = '';
document.body.style.position = '';
document.body.style.width = '';
}
});
</script>
{#if !authReady}
@ -97,6 +109,7 @@
<button
class="fixed inset-0 z-30 bg-black/50 md:hidden"
onclick={closeSidebar}
ontouchstart={(e) => e.stopPropagation()}
aria-label="Close sidebar"
></button>
{/if}

Binary file not shown.

Binary file not shown.