diff --git a/frontend/src/app.html b/frontend/src/app.html index bee14a627..55b5d9eaf 100644 --- a/frontend/src/app.html +++ b/frontend/src/app.html @@ -15,10 +15,6 @@ %sveltekit.head% @@ -66,6 +56,6 @@ -
%sveltekit.body%
+
%sveltekit.body%
diff --git a/frontend/src/components/Error.svelte b/frontend/src/components/Error.svelte index 87aaf80df..f6f06da7e 100644 --- a/frontend/src/components/Error.svelte +++ b/frontend/src/components/Error.svelte @@ -1,51 +1,58 @@ - - -

{t.error}

-

{t.errorText}

+
+ + +
+

{t.error}

+
+

{t.errorText}

- {#if t.detailsText} -
showDetails = !showDetails} - onkeypress={() => showDetails = !showDetails} - > - {t.details} -
- -
-
+ {#if t.detailsText} +
showDetails = !showDetails} + onkeypress={() => showDetails = !showDetails} + > + {t.details} +
+ +
+
- {#if showDetails} -
- {t.detailsText} -
- {/if} - {/if} + {#if showDetails} +
+ {t.detailsText} +
+ {/if} + {/if} - - - + +
+
+
+
\ No newline at end of file diff --git a/frontend/src/lib_svelte5/Main.svelte b/frontend/src/lib_svelte5/Main.svelte new file mode 100644 index 000000000..ec414cdf5 --- /dev/null +++ b/frontend/src/lib_svelte5/Main.svelte @@ -0,0 +1,18 @@ + + +
+ {@render children()} +
+ + + \ No newline at end of file diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index 183f20429..bf50c6b7c 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -2,6 +2,7 @@ import {onMount, type Snippet} from 'svelte' import "../css/global.css"; + import {useIsDev} from "../global_state/is_dev.svelte.ts"; let { children, @@ -9,13 +10,12 @@ children: Snippet, } = $props(); + let isDev = useIsDev(); let cookiesEnabled = $state(true); onMount(() => { cookiesEnabled = navigator.cookieEnabled; }); - -