diff --git a/fclauncher/frontend/src/App.svelte b/fclauncher/frontend/src/App.svelte index 837b587..dc4b0a0 100644 --- a/fclauncher/frontend/src/App.svelte +++ b/fclauncher/frontend/src/App.svelte @@ -4,25 +4,33 @@ import Loading from './Loading.svelte' import {CheckPrerequisites} from '../wailsjs/go/main/App.js' import { onMount } from 'svelte' - import { loading, testPage, navMargin } from './global' + import { loading, testPage, } from './global' import { slide } from 'svelte/transition' import Navbar from './Navbar.svelte' import Testpage from './Testpage.svelte' + import { set_attributes, set_style } from 'svelte/internal'; let width: int = 10 + let navMargin = document.getElementById("body") as HTMLElement; onMount(() => { CheckPrerequisites().then(() => $loading = false) }) + function setMargin(){ + document.documentElement.style.setProperty('--navMargin', '17rem'); + } + function unsetMargin(){ + document.documentElement.style.setProperty('--navMargin', '5rem'); + }
-