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
8b4867de
Commit
8b4867de
authored
Jun 09, 2024
by
Timothy J. Baek
Browse files
refac: styling
parent
a93645ae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
src/lib/components/admin/Settings.svelte
src/lib/components/admin/Settings.svelte
+4
-4
src/routes/(app)/admin/+layout.svelte
src/routes/(app)/admin/+layout.svelte
+5
-1
No files found.
src/lib/components/admin/Settings.svelte
View file @
8b4867de
...
...
@@ -23,12 +23,12 @@
let selectedTab = 'general';
</script>
<div class="flex flex-col
md
:flex-row w-full h-full py-2
md
:space-x-4">
<div class="flex flex-col
lg
:flex-row w-full h-full py-2
lg
:space-x-4">
<div
class="tabs flex flex-row overflow-x-auto space-x-1 m
d
:space-x-0
md
:space-y-1
md
:flex-col
md
:flex-none
md
:w-44 dark:text-gray-200 text-xs text-left scrollbar-none"
class="tabs flex flex-row overflow-x-auto space-x-1 m
ax-w-full lg
:space-x-0
lg
:space-y-1
lg
:flex-col
lg
:flex-none
lg
:w-44 dark:text-gray-200 text-xs text-left scrollbar-none"
>
<button
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1
md
:flex-none flex text-right transition {selectedTab ===
class="px-2.5 py-2.5 min-w-fit rounded-lg flex-1
lg
:flex-none flex text-right transition {selectedTab ===
'general'
? 'bg-gray-200 dark:bg-gray-800'
: ' hover:bg-gray-300 dark:hover:bg-gray-850'}"
...
...
@@ -319,7 +319,7 @@
</button>
</div>
<div class="flex-1 mt-3
md
:mt-0 overflow-y-scroll">
<div class="flex-1 mt-3
lg
:mt-0 overflow-y-scroll">
{#if selectedTab === 'general'}
<General
saveHandler={() => {
...
...
src/routes/(app)/admin/+layout.svelte
View file @
8b4867de
...
...
@@ -14,7 +14,11 @@
</title>
</svelte:head>
<div class=" flex flex-col w-full min-h-screen max-h-screen">
<div
class=" flex flex-col w-full min-h-screen max-h-screen {$showSidebar
? 'md:max-w-[calc(100%-260px)]'
: ''}"
>
<div class=" px-4 pt-3 mt-0.5 mb-1">
<div class=" flex items-center gap-1">
<div class="{$showSidebar ? 'md:hidden' : ''} mr-1 self-start flex flex-none items-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