ui fix pwa 1

This commit is contained in:
beo3000 2026-02-22 12:14:25 +01:00
parent dc47683e4c
commit 0e4b5f0612
4 changed files with 11 additions and 16 deletions

View File

@ -1 +1 @@
1.0.25 1.0.27

View File

@ -7,6 +7,7 @@
import { sync } from "$lib/sync/syncService"; import { sync } from "$lib/sync/syncService";
import { refreshLockStatus } from "$lib/stores/aiLock"; import { refreshLockStatus } from "$lib/stores/aiLock";
import { onMount, onDestroy } from "svelte"; import { onMount, onDestroy } from "svelte";
import { afterNavigate } from "$app/navigation";
import type { Snippet } from "svelte"; import type { Snippet } from "svelte";
import { import {
handleRedirect, handleRedirect,
@ -72,17 +73,7 @@
sidebarOpen = false; sidebarOpen = false;
} }
$effect(() => { afterNavigate(() => closeSidebar());
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> </script>
{#if !authReady} {#if !authReady}
@ -106,10 +97,12 @@
<div class="flex h-screen overflow-hidden"> <div class="flex h-screen overflow-hidden">
<!-- Sidebar: fullscreen on mobile, static on desktop --> <!-- Sidebar: fullscreen on mobile, static on desktop -->
{#if sidebarOpen} {#if sidebarOpen}
<!-- Backdrop -->
<div class="fixed inset-0 z-[59] bg-black/50 backdrop-blur-sm md:hidden" onclick={closeSidebar}></div>
<!-- Mobile: full-screen overlay --> <!-- Mobile: full-screen overlay -->
<div class="fixed inset-0 z-40 flex flex-col bg-sidebar md:hidden"> <div class="fixed inset-0 z-[60] flex flex-col bg-sidebar md:hidden">
<!-- Header with close button --> <!-- Header with close button -->
<div class="flex items-center justify-between border-b border-border px-5 py-4 shrink-0"> <div class="flex items-center justify-between border-b border-border px-5 py-4 shrink-0" style="padding-top: max(1rem, env(safe-area-inset-top));">
<span class="text-lg font-bold text-accent uppercase tracking-wider">Ka-Note</span> <span class="text-lg font-bold text-accent uppercase tracking-wider">Ka-Note</span>
<button <button
class="text-2xl text-muted hover:text-white leading-none" class="text-2xl text-muted hover:text-white leading-none"
@ -137,8 +130,10 @@
</div> </div>
</main> </main>
<!-- Bottom tab bar (mobile only) --> <!-- Bottom tab bar (mobile only, hidden when sidebar open) -->
<BottomTabBar onsidebaropen={toggleSidebar} /> {#if !sidebarOpen}
<BottomTabBar onsidebaropen={toggleSidebar} />
{/if}
</div> </div>
{:else} {:else}
<div class="flex h-screen items-center justify-center bg-bg"> <div class="flex h-screen items-center justify-center bg-bg">

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
vorlagen/iod_menu_offen.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB