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
0cf9b07e
Commit
0cf9b07e
authored
May 31, 2024
by
Timothy J. Baek
Browse files
refac: model list styling
parent
9dfa334a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/lib/components/workspace/Models.svelte
src/lib/components/workspace/Models.svelte
+4
-4
No files found.
src/lib/components/workspace/Models.svelte
View file @
0cf9b07e
...
@@ -210,10 +210,10 @@
...
@@ -210,10 +210,10 @@
class=" flex space-x-4 cursor-pointer w-full px-3 py-2 dark:hover:bg-white/5 hover:bg-black/5 rounded-xl"
class=" flex space-x-4 cursor-pointer w-full px-3 py-2 dark:hover:bg-white/5 hover:bg-black/5 rounded-xl"
>
>
<a
<a
class=" flex flex-1 space-x-
4
cursor-pointer w-full"
class=" flex flex-1 space-x-
3.5
cursor-pointer w-full"
href={`/?models=${encodeURIComponent(model.id)}`}
href={`/?models=${encodeURIComponent(model.id)}`}
>
>
<div class=" self-
center w-10
">
<div class=" self-
start w-8 pt-0.5
">
<div
<div
class=" rounded-full bg-stone-700 {model?.info?.meta?.hidden ?? false
class=" rounded-full bg-stone-700 {model?.info?.meta?.hidden ?? false
? 'brightness-90 dark:brightness-50'
? 'brightness-90 dark:brightness-50'
...
@@ -230,8 +230,8 @@
...
@@ -230,8 +230,8 @@
<div
<div
class=" flex-1 self-center {model?.info?.meta?.hidden ?? false ? 'text-gray-500' : ''}"
class=" flex-1 self-center {model?.info?.meta?.hidden ?? false ? 'text-gray-500' : ''}"
>
>
<div class=" font-bold line-clamp-1">{model.name}</div>
<div class="
font-bold line-clamp-1">{model.name}</div>
<div class=" text-s
m
overflow-hidden text-ellipsis line-clamp-1">
<div class=" text-
x
s overflow-hidden text-ellipsis line-clamp-1">
{!!model?.info?.meta?.description ? model?.info?.meta?.description : model.id}
{!!model?.info?.meta?.description ? model?.info?.meta?.description : model.id}
</div>
</div>
</div>
</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