From 0923913801298cab4e6347a900971627ee48bbf5 Mon Sep 17 00:00:00 2001 From: cuptain Date: Sat, 2 Nov 2024 12:14:04 +1100 Subject: [PATCH] Trying to make pages adjust dynamically for navbar --- fclauncher/frontend/src/App.svelte | 2 +- fclauncher/frontend/src/Navbar.svelte | 13 +++++++++++-- fclauncher/frontend/src/Testpage.svelte | 26 ++++++++++++++----------- fclauncher/frontend/src/global.ts | 3 ++- 4 files changed, 29 insertions(+), 15 deletions(-) diff --git a/fclauncher/frontend/src/App.svelte b/fclauncher/frontend/src/App.svelte index 34be3fa..837b587 100644 --- a/fclauncher/frontend/src/App.svelte +++ b/fclauncher/frontend/src/App.svelte @@ -4,7 +4,7 @@ import Loading from './Loading.svelte' import {CheckPrerequisites} from '../wailsjs/go/main/App.js' import { onMount } from 'svelte' - import { loading, testPage } from './global' + import { loading, testPage, navMargin } from './global' import { slide } from 'svelte/transition' import Navbar from './Navbar.svelte' import Testpage from './Testpage.svelte' diff --git a/fclauncher/frontend/src/Navbar.svelte b/fclauncher/frontend/src/Navbar.svelte index 5ee9d3e..34b33f4 100644 --- a/fclauncher/frontend/src/Navbar.svelte +++ b/fclauncher/frontend/src/Navbar.svelte @@ -1,9 +1,18 @@
-