Spaces:
Running
Running
truncate
Browse files
src/lib/components/model/SettingsModel.svelte
CHANGED
|
@@ -127,13 +127,13 @@
|
|
| 127 |
: 'hover:from-accent-foreground/10 hover:to-accent-foreground/0 dark:hover:from-blue-500/20! dark:hover:to-blue-500/5!'} flex w-full cursor-pointer items-center justify-between gap-2 rounded-md bg-linear-to-r from-transparent to-transparent px-2.5 py-2 text-left text-xs transition-all duration-300"
|
| 128 |
onclick={() => (model = mdl)}
|
| 129 |
>
|
| 130 |
-
<span class="flex items-center gap-2">
|
| 131 |
<img
|
| 132 |
src={`https://huggingface.co/api/avatars/${mdl.owned_by}`}
|
| 133 |
alt={mdl.owned_by}
|
| 134 |
class="size-4 rounded"
|
| 135 |
/>
|
| 136 |
-
<span class="truncate">
|
| 137 |
{mdl.owned_by ?? ''}/
|
| 138 |
<span class="font-medium">
|
| 139 |
{mdl.id.split('/').pop() ?? mdl.id}
|
|
|
|
| 127 |
: 'hover:from-accent-foreground/10 hover:to-accent-foreground/0 dark:hover:from-blue-500/20! dark:hover:to-blue-500/5!'} flex w-full cursor-pointer items-center justify-between gap-2 rounded-md bg-linear-to-r from-transparent to-transparent px-2.5 py-2 text-left text-xs transition-all duration-300"
|
| 128 |
onclick={() => (model = mdl)}
|
| 129 |
>
|
| 130 |
+
<span class="flex items-center gap-2 truncate">
|
| 131 |
<img
|
| 132 |
src={`https://huggingface.co/api/avatars/${mdl.owned_by}`}
|
| 133 |
alt={mdl.owned_by}
|
| 134 |
class="size-4 rounded"
|
| 135 |
/>
|
| 136 |
+
<span class="truncate text-ellipsis">
|
| 137 |
{mdl.owned_by ?? ''}/
|
| 138 |
<span class="font-medium">
|
| 139 |
{mdl.id.split('/').pop() ?? mdl.id}
|