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
210456e4
Commit
210456e4
authored
May 14, 2024
by
Timothy J. Baek
Browse files
refac: styling
parent
c45bb64d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
29 deletions
+7
-29
src/lib/components/layout/Navbar.svelte
src/lib/components/layout/Navbar.svelte
+6
-2
src/lib/components/layout/Sidebar.svelte
src/lib/components/layout/Sidebar.svelte
+1
-1
src/lib/components/layout/Sidebar/UserMenu.svelte
src/lib/components/layout/Sidebar/UserMenu.svelte
+0
-26
No files found.
src/lib/components/layout/Navbar.svelte
View file @
210456e4
...
@@ -41,7 +41,11 @@
...
@@ -41,7 +41,11 @@
<nav id="nav" class=" sticky py-2.5 top-0 flex flex-row justify-center z-30">
<nav id="nav" class=" sticky py-2.5 top-0 flex flex-row justify-center z-30">
<div class=" flex max-w-full w-full mx-auto px-5 pt-0.5 md:px-[1rem]">
<div class=" flex max-w-full w-full mx-auto px-5 pt-0.5 md:px-[1rem]">
<div class="flex items-center w-full max-w-full">
<div class="flex items-center w-full max-w-full">
<div class="{$showSidebar ? 'md:hidden' : ''} mr-3 self-start flex flex-none items-center">
<div
class="{$showSidebar
? 'md:hidden'
: ''} mr-3 self-start flex flex-none items-center text-gray-600 dark:text-gray-400"
>
<button
<button
id="sidebar-toggle-button"
id="sidebar-toggle-button"
class="cursor-pointer px-2 py-2 flex rounded-xl hover:bg-gray-100 dark:hover:bg-gray-850 transition"
class="cursor-pointer px-2 py-2 flex rounded-xl hover:bg-gray-100 dark:hover:bg-gray-850 transition"
...
@@ -60,7 +64,7 @@
...
@@ -60,7 +64,7 @@
{/if}
{/if}
</div>
</div>
<div class="self-start flex flex-none items-center">
<div class="self-start flex flex-none items-center
text-gray-600 dark:text-gray-400
">
<!-- <div class="md:hidden flex self-center w-[1px] h-5 mx-2 bg-gray-300 dark:bg-stone-700" /> -->
<!-- <div class="md:hidden flex self-center w-[1px] h-5 mx-2 bg-gray-300 dark:bg-stone-700" /> -->
{#if !shareEnabled}
{#if !shareEnabled}
...
...
src/lib/components/layout/Sidebar.svelte
View file @
210456e4
...
@@ -217,7 +217,7 @@
...
@@ -217,7 +217,7 @@
? ''
? ''
: 'invisible'}"
: 'invisible'}"
>
>
<div class="px-2.5 flex justify-between space-x-1">
<div class="px-2.5 flex justify-between space-x-1
text-gray-600 dark:text-gray-400
">
<button
<button
class=" cursor-pointer px-2 py-2 flex rounded-xl hover:bg-gray-100 dark:hover:bg-gray-850 transition"
class=" cursor-pointer px-2 py-2 flex rounded-xl hover:bg-gray-100 dark:hover:bg-gray-850 transition"
on:click={() => {
on:click={() => {
...
...
src/lib/components/layout/Sidebar/UserMenu.svelte
View file @
210456e4
...
@@ -60,32 +60,6 @@
...
@@ -60,32 +60,6 @@
</div>
</div>
<div class=" self-center font-medium">{$i18n.t('Admin Panel')}</div>
<div class=" self-center font-medium">{$i18n.t('Admin Panel')}</div>
</button>
</button>
<button
class="flex rounded-md py-2.5 px-3.5 w-full hover:bg-gray-100 dark:hover:bg-gray-800 transition"
on:click={() => {
goto('/playground');
show = false;
}}
>
<div class=" self-center mr-3">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="w-5 h-5"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="m6.75 7.5 3 2.25-3 2.25m4.5 0h3m-9 8.25h13.5A2.25 2.25 0 0 0 21 18V6a2.25 2.25 0 0 0-2.25-2.25H5.25A2.25 2.25 0 0 0 3 6v12a2.25 2.25 0 0 0 2.25 2.25Z"
/>
</svg>
</div>
<div class=" self-center font-medium">{$i18n.t('Playground')}</div>
</button>
{/if}
{/if}
<button
<button
...
...
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