From af4dfae163bc41930aabef773b5bbf66c71296cc Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sun, 5 Mar 2023 00:03:43 -0500 Subject: [PATCH] Cleanup css --- justfile | 1 + web-frontend/src/app.html | 4 +- web-frontend/src/lib/Map.svelte | 22 +-------- web-frontend/src/routes/+layout.svelte | 61 +++++++++++++----------- web-frontend/src/routes/app/+page.svelte | 2 +- web-frontend/svelte.config.js | 3 +- 6 files changed, 41 insertions(+), 52 deletions(-) diff --git a/justfile b/justfile index 834a5e6..5fd0364 100644 --- a/justfile +++ b/justfile @@ -22,6 +22,7 @@ clean: build-docs: earthly +docs + cargo doc --all # TODO: Clippy rust-watch: diff --git a/web-frontend/src/app.html b/web-frontend/src/app.html index effe0d0..54a2427 100644 --- a/web-frontend/src/app.html +++ b/web-frontend/src/app.html @@ -1,12 +1,12 @@ - + %sveltekit.head% - +
%sveltekit.body%
diff --git a/web-frontend/src/lib/Map.svelte b/web-frontend/src/lib/Map.svelte index d38d98c..67cca31 100644 --- a/web-frontend/src/lib/Map.svelte +++ b/web-frontend/src/lib/Map.svelte @@ -45,28 +45,10 @@ }); -
-
+
+
diff --git a/web-frontend/src/routes/+layout.svelte b/web-frontend/src/routes/+layout.svelte index 5ebe8c2..e83baed 100644 --- a/web-frontend/src/routes/+layout.svelte +++ b/web-frontend/src/routes/+layout.svelte @@ -7,35 +7,40 @@ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> -
- - -
+ + + -
- +
+ +
diff --git a/web-frontend/src/routes/app/+page.svelte b/web-frontend/src/routes/app/+page.svelte index 377eb9d..a462788 100644 --- a/web-frontend/src/routes/app/+page.svelte +++ b/web-frontend/src/routes/app/+page.svelte @@ -87,7 +87,7 @@

Could not start core module

-

Error: {wasmError}.

+

Error: {wasm.error}.

{/if} diff --git a/web-frontend/svelte.config.js b/web-frontend/svelte.config.js index 1651db5..9c64673 100644 --- a/web-frontend/svelte.config.js +++ b/web-frontend/svelte.config.js @@ -16,7 +16,8 @@ const config = { strict: true }) }, - preprocess: vitePreprocess() + preprocess: vitePreprocess(), + trailingSlash: 'always' }; export default config;