From d0e4645c365318f0488dc50611a946f17d6d3731 Mon Sep 17 00:00:00 2001 From: a2nr Date: Fri, 11 Sep 2026 12:55:35 +0700 Subject: [PATCH] fix(playground): resolve desktop layout overlap and show velxio toolbar --- frontend/src/lib/version.ts | 2 +- frontend/src/routes/+layout.svelte | 52 ++++++++++++++++++--- frontend/src/routes/playground/+page.svelte | 32 ++++++------- velxio | 2 +- 4 files changed, 64 insertions(+), 24 deletions(-) diff --git a/frontend/src/lib/version.ts b/frontend/src/lib/version.ts index 9519199..7fea55c 100644 --- a/frontend/src/lib/version.ts +++ b/frontend/src/lib/version.ts @@ -3,4 +3,4 @@ * Both Footer.svelte and service-worker.ts import from here. * Bump this number after every feature/bugfix release. */ -export const APP_VERSION = 30; +export const APP_VERSION = 31; diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index fe898a8..42c494e 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -16,15 +16,55 @@ // Playground = full-viewport route: tanpa padding/overflow halaman biasa, footer disembunyikan. // Navbar tetap tampil (theme toggle + token login) — tinggi main otomatis menyesuaikan via flex. - let isPlayground = $derived($page.url.pathname === '/playground'); + let isPlayground = $derived( + $page.url.pathname === '/playground' || $page.url.pathname.startsWith('/playground/') + ); + + {#if isPlayground} + + {/if} + + -
- {@render children()} -
- -{#if !isPlayground} +{#if isPlayground} +
+ {@render children()} +
+{:else} +
+ {@render children()} +