mirror of
https://github.com/gurucomputing/headscale-ui.git
synced 2026-07-30 11:10:21 +00:00
smoothed loading for settings page
This commit is contained in:
parent
cd0b84a679
commit
ecce526964
1 changed files with 9 additions and 9 deletions
|
|
@ -12,19 +12,19 @@
|
|||
|
||||
onMount(async () => {
|
||||
// Display component frontend
|
||||
await new Promise(r => setTimeout(r, 200));
|
||||
componentLoaded = true;
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- html -->
|
||||
<body>
|
||||
{#if componentLoaded}
|
||||
<div in:fade class="px-4 py-4 w-4/5 max-w-screen-lg">
|
||||
<ServerSettings />
|
||||
<div class="p-4"></div>
|
||||
<ThemeSettings />
|
||||
<div class="p-4"></div>
|
||||
<h1 class="text-2xl bold text-primary mb-4">Version</h1><b>insert-version</b>
|
||||
</div>
|
||||
{/if}
|
||||
<div hidden={!componentLoaded} in:fade class="px-4 py-4 w-4/5 max-w-screen-lg">
|
||||
<ServerSettings />
|
||||
<div class="p-4" />
|
||||
<ThemeSettings />
|
||||
<div class="p-4" />
|
||||
<h1 class="text-2xl bold text-primary mb-4">Version</h1>
|
||||
<b>insert-version</b>
|
||||
</div>
|
||||
</body>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue