Remove safe area inset stuff to re-apply later

This commit is contained in:
Jon Staab
2025-05-08 09:07:24 -07:00
parent d57f4747a6
commit 6e5e1a0846
10 changed files with 75 additions and 36 deletions
+4 -2
View File
@@ -1,9 +1,11 @@
<script lang="ts">
import type {Snippet} from "svelte"
interface Props {
children?: import("svelte").Snippet
children?: Snippet
}
const {children}: Props = $props()
const {children, ...props}: Props = $props()
</script>
<div class="flex items-center gap-2 p-2 text-xs uppercase opacity-50">
+1 -1
View File
@@ -12,7 +12,7 @@
onclick={onClose}>
</button>
<div
class="scroll-container saiy sair absolute bottom-0 right-0 top-0 w-80 overflow-auto bg-base-200 text-base-content lg:w-96"
class="scroll-container absolute bottom-0 right-0 top-0 w-80 overflow-auto bg-base-200 text-base-content lg:w-96"
transition:translate={{axis: "x", duration: 300}}>
{@render children?.()}
</div>
+2 -1
View File
@@ -8,6 +8,7 @@
</script>
<div
class="sait saib sair scroll-container mb-14 max-h-screen flex-grow overflow-auto bg-base-200 md:mb-0 {props.class}">
data-component="Page"
class="scroll-container mb-14 max-h-screen flex-grow overflow-auto bg-base-200 md:mb-0 {props.class}">
{@render props.children?.()}
</div>
+1 -1
View File
@@ -11,7 +11,7 @@
const {...props}: Props = $props()
</script>
<div class="sait cw fixed top-2 z-feature rounded-xl px-2 pt-2 {props.class}">
<div data-component="PageBar" class="cw fixed top-2 z-feature rounded-xl px-2 pt-2 {props.class}">
<div
class="flex min-h-12 items-center justify-between gap-4 rounded-xl bg-base-100 px-4 shadow-xl">
<div class="ellipsize flex items-center gap-4 whitespace-nowrap">
+1 -1
View File
@@ -13,6 +13,6 @@
<div
{...props}
bind:this={element}
class="scroll-container saib cw fixed top-12 h-[calc(100%-6.5rem)] overflow-y-auto overflow-x-hidden md:h-[calc(100%-3rem)] {props.class}">
class="scroll-container cw fixed top-12 h-[calc(100%-6.5rem)] overflow-y-auto overflow-x-hidden md:h-[calc(100%-3rem)] {props.class}">
{@render children?.()}
</div>
+1 -2
View File
@@ -6,7 +6,6 @@
const {children}: Props = $props()
</script>
<div
class="sail sait saib hidden max-h-screen w-60 flex-shrink-0 flex-col gap-1 bg-base-300 md:flex">
<div class="hidden max-h-screen w-60 flex-shrink-0 flex-col gap-1 bg-base-300 md:flex">
{@render children?.()}
</div>