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
f63866b7
Commit
f63866b7
authored
Apr 26, 2024
by
Timothy J. Baek
Browse files
feat: loading indicator
parent
b22415d4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
src/routes/+layout.svelte
src/routes/+layout.svelte
+12
-0
No files found.
src/routes/+layout.svelte
View file @
f63866b7
...
...
@@ -12,6 +12,7 @@
import 'tippy.js/dist/tippy.css';
import { WEBUI_BASE_URL } from '$lib/constants';
import i18n, { initI18n } from '$lib/i18n';
import Spinner from '$lib/components/common/Spinner.svelte';
setContext('i18n', i18n);
...
...
@@ -74,6 +75,17 @@
{#if loaded}
<slot />
{:else}
<div class=" min-h-screen h-[100dvh] flex">
<div class="m-auto">
<img
src="/logo.svg"
alt="logo"
class=" size-24 rounded-full border-[1px] border-gray-200 dark:border-none mx-auto mb-8"
draggable="false"
/>
</div>
</div>
{/if}
<Toaster richColors position="top-center" />
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