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
6fd13c1c
"src/vscode:/vscode.git/clone" did not exist on "3efc59ee494eaefbc3fc3edd344766129d958ef4"
Commit
6fd13c1c
authored
Feb 19, 2024
by
Timothy J. Baek
Browse files
feat: sidebar button to anchor
parent
cb291611
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
29 deletions
+13
-29
src/lib/components/layout/Sidebar.svelte
src/lib/components/layout/Sidebar.svelte
+12
-28
src/routes/(app)/prompts/+page.svelte
src/routes/(app)/prompts/+page.svelte
+1
-1
No files found.
src/lib/components/layout/Sidebar.svelte
View file @
6fd13c1c
...
@@ -139,11 +139,9 @@
...
@@ -139,11 +139,9 @@
{#if $user?.role === 'admin'}
{#if $user?.role === 'admin'}
<div class="px-2.5 flex justify-center mt-0.5">
<div class="px-2.5 flex justify-center mt-0.5">
<
button
<
a
class="flex-grow flex space-x-3 rounded-md px-3 py-2 hover:bg-gray-900 transition"
class="flex-grow flex space-x-3 rounded-md px-3 py-2 hover:bg-gray-900 transition"
on:click={async () => {
href="/modelfiles"
goto('/modelfiles');
}}
>
>
<div class="self-center">
<div class="self-center">
<svg
<svg
...
@@ -165,15 +163,13 @@
...
@@ -165,15 +163,13 @@
<div class="flex self-center">
<div class="flex self-center">
<div class=" self-center font-medium text-sm">Modelfiles</div>
<div class=" self-center font-medium text-sm">Modelfiles</div>
</div>
</div>
</
button
>
</
a
>
</div>
</div>
<div class="px-2.5 flex justify-center">
<div class="px-2.5 flex justify-center">
<
button
<
a
class="flex-grow flex space-x-3 rounded-md px-3 py-2 hover:bg-gray-900 transition"
class="flex-grow flex space-x-3 rounded-md px-3 py-2 hover:bg-gray-900 transition"
on:click={async () => {
href="/prompts"
goto('/prompts');
}}
>
>
<div class="self-center">
<div class="self-center">
<svg
<svg
...
@@ -195,15 +191,13 @@
...
@@ -195,15 +191,13 @@
<div class="flex self-center">
<div class="flex self-center">
<div class=" self-center font-medium text-sm">Prompts</div>
<div class=" self-center font-medium text-sm">Prompts</div>
</div>
</div>
</
button
>
</
a
>
</div>
</div>
<div class="px-2.5 flex justify-center mb-1">
<div class="px-2.5 flex justify-center mb-1">
<
button
<
a
class="flex-grow flex space-x-3 rounded-md px-3 py-2 hover:bg-gray-900 transition"
class="flex-grow flex space-x-3 rounded-md px-3 py-2 hover:bg-gray-900 transition"
on:click={async () => {
href="/documents"
goto('/documents');
}}
>
>
<div class="self-center">
<div class="self-center">
<svg
<svg
...
@@ -225,7 +219,7 @@
...
@@ -225,7 +219,7 @@
<div class="flex self-center">
<div class="flex self-center">
<div class=" self-center font-medium text-sm">Documents</div>
<div class=" self-center font-medium text-sm">Documents</div>
</div>
</div>
</
button
>
</
a
>
</div>
</div>
{/if}
{/if}
...
@@ -360,22 +354,12 @@
...
@@ -360,22 +354,12 @@
}
}
}) as chat, i}
}) as chat, i}
<div class=" w-full pr-2 relative">
<div class=" w-full pr-2 relative">
<
button
<
a
class=" w-full flex justify-between rounded-md px-3 py-2 hover:bg-gray-900 {chat.id ===
class=" w-full flex justify-between rounded-md px-3 py-2 hover:bg-gray-900 {chat.id ===
$chatId
$chatId
? 'bg-gray-900'
? 'bg-gray-900'
: ''} transition whitespace-nowrap text-ellipsis"
: ''} transition whitespace-nowrap text-ellipsis"
on:click={() => {
href="/c/{chat.id}"
// goto(`/c/${chat.id}`);
if (chat.id !== chatTitleEditId) {
chatTitleEditId = null;
chatTitle = '';
}
if (chat.id !== $chatId) {
loadChat(chat.id);
}
}}
>
>
<div class=" flex self-center flex-1">
<div class=" flex self-center flex-1">
<div class=" self-center mr-3">
<div class=" self-center mr-3">
...
@@ -406,7 +390,7 @@
...
@@ -406,7 +390,7 @@
{/if}
{/if}
</div>
</div>
</div>
</div>
</
button
>
</
a
>
{#if chat.id === $chatId}
{#if chat.id === $chatId}
<div class=" absolute right-[22px] top-[10px]">
<div class=" absolute right-[22px] top-[10px]">
...
...
src/routes/(app)/prompts/+page.svelte
View file @
6fd13c1c
...
@@ -296,7 +296,7 @@
...
@@ -296,7 +296,7 @@
</div>
</div>
<div class=" my-16">
<div class=" my-16">
<div class=" text-2xl font-semibold mb-
6
">Made by OpenWebUI Community</div>
<div class=" text-2xl font-semibold mb-
3
">Made by OpenWebUI Community</div>
<a
<a
class=" flex space-x-4 cursor-pointer w-full mb-3 px-3 py-2"
class=" flex space-x-4 cursor-pointer w-full mb-3 px-3 py-2"
...
...
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