From 1e08814b1b0b002bc6c798215ba5d8b9c57a7fb8 Mon Sep 17 00:00:00 2001 From: Frank Noirot Date: Sat, 10 Feb 2024 16:42:12 -0500 Subject: [PATCH] Size everything 100vh to 100dvh in browsers that support it --- src/routes/(sidebarLayout)/+layout.svelte | 3 ++- src/routes/(sidebarLayout)/dashboard/+page.svelte | 2 +- src/routes/(sidebarLayout)/view/[modelId]/+page.svelte | 2 +- src/routes/+page.svelte | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/routes/(sidebarLayout)/+layout.svelte b/src/routes/(sidebarLayout)/+layout.svelte index c3f1d86..49a0f1b 100644 --- a/src/routes/(sidebarLayout)/+layout.svelte +++ b/src/routes/(sidebarLayout)/+layout.svelte @@ -5,7 +5,7 @@ export let data: LayoutData -
+
@@ -23,6 +23,7 @@ .pane-layout { @apply h-screen overflow-hidden flex flex-col md:flex-row; + height: 100dvh; } main { diff --git a/src/routes/(sidebarLayout)/dashboard/+page.svelte b/src/routes/(sidebarLayout)/dashboard/+page.svelte index 8c8a7a2..bac1c56 100644 --- a/src/routes/(sidebarLayout)/dashboard/+page.svelte +++ b/src/routes/(sidebarLayout)/dashboard/+page.svelte @@ -10,7 +10,7 @@ let input = null as HTMLTextAreaElement | null -
+

Text-to-CAD diff --git a/src/routes/(sidebarLayout)/view/[modelId]/+page.svelte b/src/routes/(sidebarLayout)/view/[modelId]/+page.svelte index 55c787c..f30e895 100644 --- a/src/routes/(sidebarLayout)/view/[modelId]/+page.svelte +++ b/src/routes/(sidebarLayout)/view/[modelId]/+page.svelte @@ -30,7 +30,7 @@ $: gltfUrl = `data:model/gltf+json;base64,${data.outputs ? data.outputs['source.gltf'] : ''}` -
+
{#if $navigating}
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 9ad2570..da88140 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -13,7 +13,7 @@ ] -
+