Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
e2447dd0
"git@developer.sourcefind.cn:modelzoo/vit_migraphx.git" did not exist on "923a059416f4403870d860bbe5a5bd7a9b73ef89"
Commit
e2447dd0
authored
Apr 27, 2024
by
Timothy J. Baek
Browse files
refac: better layout loading
parent
2feba8af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
108 additions
and
108 deletions
+108
-108
src/routes/(app)/+layout.svelte
src/routes/(app)/+layout.svelte
+108
-108
No files found.
src/routes/(app)/+layout.svelte
View file @
e2447dd0
...
@@ -176,8 +176,7 @@
...
@@ -176,8 +176,7 @@
});
});
</script>
</script>
{#if loaded}
<div class=" hidden lg:flex fixed bottom-0 right-0 px-3 py-3 z-10">
<div class=" hidden lg:flex fixed bottom-0 right-0 px-3 py-3 z-10">
<Tooltip content="Help" placement="left">
<Tooltip content="Help" placement="left">
<button
<button
id="show-shortcuts-button"
id="show-shortcuts-button"
...
@@ -190,11 +189,15 @@
...
@@ -190,11 +189,15 @@
?
?
</button>
</button>
</Tooltip>
</Tooltip>
</div>
</div>
<ShortcutsModal bind:show={showShortcuts} />
<ShortcutsModal bind:show={showShortcuts} />
<div class="app relative">
<div class="app relative">
<div
class=" text-gray-700 dark:text-gray-100 bg-white dark:bg-gray-900 min-h-screen overflow-auto flex flex-row"
>
{#if loaded}
{#if !['user', 'admin'].includes($user.role)}
{#if !['user', 'admin'].includes($user.role)}
<div class="fixed w-full h-full flex z-50">
<div class="fixed w-full h-full flex z-50">
<div
<div
...
@@ -214,7 +217,7 @@
...
@@ -214,7 +217,7 @@
<div class=" mt-6 mx-auto relative group w-fit">
<div class=" mt-6 mx-auto relative group w-fit">
<button
<button
class="relative z-20 flex px-5 py-2 rounded-full bg-white border border-gray-100 dark:border-none hover:bg-gray-100 transition font-medium text-sm"
class="relative z-20 flex px-5 py-2 rounded-full bg-white border border-gray-100 dark:border-none hover:bg-gray-100
text-gray-700
transition font-medium text-sm"
on:click={async () => {
on:click={async () => {
location.href = '/';
location.href = '/';
}}
}}
...
@@ -288,16 +291,13 @@
...
@@ -288,16 +291,13 @@
</div>
</div>
{/if}
{/if}
<div
class=" text-gray-700 dark:text-gray-100 bg-white dark:bg-gray-900 min-h-screen overflow-auto flex flex-row"
>
<Sidebar />
<Sidebar />
<SettingsModal bind:show={$showSettings} />
<SettingsModal bind:show={$showSettings} />
<ChangelogModal bind:show={$showChangelog} />
<ChangelogModal bind:show={$showChangelog} />
<slot />
<slot />
{/if}
</div>
</div>
</div>
</div>
{/if}
<style>
<style>
.loading {
.loading {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment