mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 05:45:19 +00:00
Merge pull request #17791 from silentoplayz/truncate-models-tag
Fix: truncate long model tags with a 32 characters limit
This commit is contained in:
commit
a97cdc0da0
1 changed files with 12 additions and 10 deletions
|
|
@ -305,16 +305,18 @@
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{#each tags as tag}
|
{#each tags as tag}
|
||||||
<button
|
<Tooltip content={tag}>
|
||||||
class="min-w-fit outline-none p-1.5 {selectedTag === tag
|
<button
|
||||||
? ''
|
class="min-w-fit outline-none p-1.5 {selectedTag === tag
|
||||||
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition capitalize"
|
? ''
|
||||||
on:click={() => {
|
: 'text-gray-300 dark:text-gray-600 hover:text-gray-700 dark:hover:text-white'} transition capitalize"
|
||||||
selectedTag = tag;
|
on:click={() => {
|
||||||
}}
|
selectedTag = tag;
|
||||||
>
|
}}
|
||||||
{tag}
|
>
|
||||||
</button>
|
{tag.length > 32 ? `${tag.slice(0, 32)}...` : tag}
|
||||||
|
</button>
|
||||||
|
</Tooltip>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue