mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 21:42:58 +00:00
refac: model list styling
This commit is contained in:
parent
9dfa334a83
commit
0cf9b07ec2
@ -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 @@
|
|||||||
<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-sm overflow-hidden text-ellipsis line-clamp-1">
|
<div class=" text-xs 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>
|
||||||
|
Loading…
Reference in New Issue
Block a user