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()} +