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
4c3edd03
Unverified
Commit
4c3edd03
authored
Feb 17, 2024
by
Timothy Jaeryang Baek
Committed by
GitHub
Feb 17, 2024
Browse files
Merge pull request #766 from open-webui/styling-fix
fix: styling
parents
7c9a6130
dc4ffe4e
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
144 additions
and
142 deletions
+144
-142
README.md
README.md
+1
-1
src/lib/components/chat/Settings/About.svelte
src/lib/components/chat/Settings/About.svelte
+1
-1
src/lib/components/layout/Sidebar.svelte
src/lib/components/layout/Sidebar.svelte
+2
-2
src/lib/constants.ts
src/lib/constants.ts
+1
-1
src/routes/(app)/admin/+page.svelte
src/routes/(app)/admin/+page.svelte
+125
-123
src/routes/(app)/documents/+page.svelte
src/routes/(app)/documents/+page.svelte
+2
-2
src/routes/(app)/modelfiles/+page.svelte
src/routes/(app)/modelfiles/+page.svelte
+2
-2
src/routes/(app)/modelfiles/create/+page.svelte
src/routes/(app)/modelfiles/create/+page.svelte
+2
-2
src/routes/(app)/modelfiles/edit/+page.svelte
src/routes/(app)/modelfiles/edit/+page.svelte
+2
-2
src/routes/(app)/prompts/+page.svelte
src/routes/(app)/prompts/+page.svelte
+2
-2
src/routes/(app)/prompts/create/+page.svelte
src/routes/(app)/prompts/create/+page.svelte
+2
-2
src/routes/(app)/prompts/edit/+page.svelte
src/routes/(app)/prompts/edit/+page.svelte
+2
-2
No files found.
README.md
View file @
4c3edd03
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@






[

](https://discord.gg/5rJgQTnV4s)
[

](https://discord.gg/5rJgQTnV4s)
[

](https://github.com/sponsors/tjbck)
[

](https://github.com/sponsors/tjbck)
ChatGPT-Style Web Interface for Ollama 🦙
ChatGPT-Style Web Interface for Ollama 🦙
...
...
src/lib/components/chat/Settings/About.svelte
View file @
4c3edd03
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<a href="https://discord.gg/5rJgQTnV4s" target="_blank">
<a href="https://discord.gg/5rJgQTnV4s" target="_blank">
<img
<img
alt="Discord"
alt="Discord"
src="https://img.shields.io/badge/Discord-O
llama
_Web
_
UI-blue?logo=discord&logoColor=white"
src="https://img.shields.io/badge/Discord-O
pen
_WebUI-blue?logo=discord&logoColor=white"
/>
/>
</a>
</a>
...
...
src/lib/components/layout/Sidebar.svelte
View file @
4c3edd03
...
@@ -88,8 +88,8 @@
...
@@ -88,8 +88,8 @@
<div
<div
bind:this={navElement}
bind:this={navElement}
class="h-screen max-h-[100dvh] min-h-screen {show
class="h-screen max-h-[100dvh] min-h-screen {show
? 'lg:relative'
? 'lg:relative
w-[260px]
'
: '-translate-x-[260px] w-[0px]'}
w-[260px] min-w[260px]
bg-black text-gray-200 shadow-2xl text-sm transition z-40 fixed top-0 left-0
: '-translate-x-[260px] w-[0px]'} bg-black text-gray-200 shadow-2xl text-sm transition z-40 fixed top-0 left-0
"
"
>
>
<div
<div
...
...
src/lib/constants.ts
View file @
4c3edd03
import
{
dev
}
from
'
$app/environment
'
;
import
{
dev
}
from
'
$app/environment
'
;
export
const
WEBUI_NAME
=
'
Open Web
UI
'
;
export
const
WEBUI_NAME
=
'
Open WebUI
'
;
export
const
WEBUI_BASE_URL
=
dev
?
`http://
${
location
.
hostname
}
:8080`
:
``
;
export
const
WEBUI_BASE_URL
=
dev
?
`http://
${
location
.
hostname
}
:8080`
:
``
;
export
const
WEBUI_API_BASE_URL
=
`
${
WEBUI_BASE_URL
}
/api/v1`
;
export
const
WEBUI_API_BASE_URL
=
`
${
WEBUI_BASE_URL
}
/api/v1`
;
...
...
src/routes/(app)/admin/+page.svelte
View file @
4c3edd03
...
@@ -75,10 +75,11 @@
...
@@ -75,10 +75,11 @@
<SettingsModal bind:show={showSettingsModal} />
<SettingsModal bind:show={showSettingsModal} />
<div
<div
class="
bg-white dark:bg-gray-900 dark:text-gray-100 min-h-screen w-full flex justify-center
font-mona"
class="
min-h-screen max-h-[100dvh] w-full flex justify-center dark:text-white bg-white dark:bg-gray-900
font-mona"
>
>
{#if loaded}
{#if loaded}
<div class="w-full max-w-3xl px-10 md:px-16 min-h-screen flex flex-col">
<div class="overflow-y-auto w-full flex justify-center">
<div class="w-full max-w-3xl px-10 md:px-16 flex flex-col">
<div class="py-10 w-full">
<div class="py-10 w-full">
<div class=" flex flex-col justify-center">
<div class=" flex flex-col justify-center">
<div class=" flex justify-between items-center">
<div class=" flex justify-between items-center">
...
@@ -210,6 +211,7 @@
...
@@ -210,6 +211,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{/if}
{/if}
</div>
</div>
...
...
src/routes/(app)/documents/+page.svelte
View file @
4c3edd03
...
@@ -179,8 +179,8 @@
...
@@ -179,8 +179,8 @@
}}
}}
/>
/>
<div class="min-h-screen w-full flex justify-center dark:text-white">
<div class="min-h-screen
max-h-[100dvh]
w-full flex justify-center dark:text-white">
<div class=" py-2.5 flex flex-col justify-between w-full">
<div class=" py-2.5 flex flex-col justify-between w-full
overflow-y-auto
">
<div class="max-w-2xl mx-auto w-full px-3 md:px-0 my-10">
<div class="max-w-2xl mx-auto w-full px-3 md:px-0 my-10">
<div class="mb-6 flex justify-between items-center">
<div class="mb-6 flex justify-between items-center">
<div class=" text-2xl font-semibold self-center">My Documents</div>
<div class=" text-2xl font-semibold self-center">My Documents</div>
...
...
src/routes/(app)/modelfiles/+page.svelte
View file @
4c3edd03
...
@@ -68,8 +68,8 @@
...
@@ -68,8 +68,8 @@
});
});
</script>
</script>
<div class="min-h-screen w-full flex justify-center dark:text-white">
<div class="min-h-screen
max-h-[100dvh]
w-full flex justify-center dark:text-white">
<div class=" py-2.5 flex flex-col justify-between w-full">
<div class=" py-2.5 flex flex-col justify-between w-full
overflow-y-auto
">
<div class="max-w-2xl mx-auto w-full px-3 md:px-0 my-10">
<div class="max-w-2xl mx-auto w-full px-3 md:px-0 my-10">
<div class=" text-2xl font-semibold mb-6">My Modelfiles</div>
<div class=" text-2xl font-semibold mb-6">My Modelfiles</div>
...
...
src/routes/(app)/modelfiles/create/+page.svelte
View file @
4c3edd03
...
@@ -256,8 +256,8 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, '');
...
@@ -256,8 +256,8 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, '');
});
});
</script>
</script>
<div class="min-h-screen w-full flex justify-center dark:text-white">
<div class="min-h-screen
max-h-[100dvh]
w-full flex justify-center dark:text-white">
<div class=" py-2.5 flex flex-col justify-between w-full">
<div class=" py-2.5 flex flex-col justify-between w-full
overflow-y-auto
">
<div class="max-w-2xl mx-auto w-full px-3 md:px-0 my-10">
<div class="max-w-2xl mx-auto w-full px-3 md:px-0 my-10">
<input
<input
bind:this={filesInputElement}
bind:this={filesInputElement}
...
...
src/routes/(app)/modelfiles/edit/+page.svelte
View file @
4c3edd03
...
@@ -180,8 +180,8 @@
...
@@ -180,8 +180,8 @@
};
};
</script>
</script>
<div class="min-h-screen w-full flex justify-center dark:text-white">
<div class="min-h-screen
max-h-[100dvh]
w-full flex justify-center dark:text-white">
<div class=" py-2.5 flex flex-col justify-between w-full">
<div class=" py-2.5 flex flex-col justify-between w-full
overflow-y-auto
">
<div class="max-w-2xl mx-auto w-full px-3 md:px-0 my-10">
<div class="max-w-2xl mx-auto w-full px-3 md:px-0 my-10">
<input
<input
bind:this={filesInputElement}
bind:this={filesInputElement}
...
...
src/routes/(app)/prompts/+page.svelte
View file @
4c3edd03
...
@@ -35,8 +35,8 @@
...
@@ -35,8 +35,8 @@
};
};
</script>
</script>
<div class="min-h-screen w-full flex justify-center dark:text-white">
<div class="min-h-screen
max-h-[100dvh]
w-full flex justify-center dark:text-white">
<div class=" py-2.5 flex flex-col justify-between w-full">
<div class=" py-2.5 flex flex-col justify-between w-full
overflow-y-auto
">
<div class="max-w-2xl mx-auto w-full px-3 md:px-0 my-10">
<div class="max-w-2xl mx-auto w-full px-3 md:px-0 my-10">
<div class="mb-6 flex justify-between items-center">
<div class="mb-6 flex justify-between items-center">
<div class=" text-2xl font-semibold self-center">My Prompts</div>
<div class=" text-2xl font-semibold self-center">My Prompts</div>
...
...
src/routes/(app)/prompts/create/+page.svelte
View file @
4c3edd03
...
@@ -77,8 +77,8 @@
...
@@ -77,8 +77,8 @@
});
});
</script>
</script>
<div class="min-h-screen w-full flex justify-center dark:text-white">
<div class="min-h-screen
max-h-[100dvh]
w-full flex justify-center dark:text-white">
<div class=" py-2.5 flex flex-col justify-between w-full">
<div class=" py-2.5 flex flex-col justify-between w-full
overflow-y-auto
">
<div class="max-w-2xl mx-auto w-full px-3 md:px-0 my-10">
<div class="max-w-2xl mx-auto w-full px-3 md:px-0 my-10">
<div class=" text-2xl font-semibold mb-6">My Prompts</div>
<div class=" text-2xl font-semibold mb-6">My Prompts</div>
...
...
src/routes/(app)/prompts/edit/+page.svelte
View file @
4c3edd03
...
@@ -71,8 +71,8 @@
...
@@ -71,8 +71,8 @@
});
});
</script>
</script>
<div class="min-h-screen w-full flex justify-center dark:text-white">
<div class="min-h-screen
max-h-[100dvh]
w-full flex justify-center dark:text-white">
<div class=" py-2.5 flex flex-col justify-between w-full">
<div class=" py-2.5 flex flex-col justify-between w-full
overflow-y-auto
">
<div class="max-w-2xl mx-auto w-full px-3 md:px-0 my-10">
<div class="max-w-2xl mx-auto w-full px-3 md:px-0 my-10">
<div class=" text-2xl font-semibold mb-6">My Prompts</div>
<div class=" text-2xl font-semibold mb-6">My Prompts</div>
...
...
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