feat(webui): enhance card visibility (#2473)

Do not let the description text to clutter, also highlight the model
names

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto 2024-06-03 17:07:26 +02:00 committed by GitHub
parent 148adebe16
commit 34527737bb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -243,13 +243,13 @@ func ListModels(models []*gallery.GalleryModel, processing *xsync.SyncedMap[stri
},
elem.H5(
attrs.Props{
"class": "mb-2 text-xl font-medium leading-tight",
"class": "mb-2 text-xl font-bold leading-tight",
},
elem.Text(m.Name),
),
elem.P(
attrs.Props{
"class": "mb-4 text-base",
"class": "mb-4 text-sm [&:not(:hover)]:truncate text-base",
},
elem.Text(m.Description),
),