Merge pull request #17791 from silentoplayz/truncate-models-tag
Fix: truncate long model tags with a 32 characters limit
This commit is contained in:
1 file changed
+3
-1
@@ -305,6 +305,7 @@
|
||||
</button>
|
||||
|
||||
{#each tags as tag}
|
||||
<Tooltip content={tag}>
|
||||
<button
|
||||
class="min-w-fit outline-none p-1.5 {selectedTag === tag
|
||||
? ''
|
||||
@@ -313,8 +314,9 @@
|
||||
selectedTag = tag;
|
||||
}}
|
||||
>
|
||||
{tag}
|
||||
{tag.length > 32 ? `${tag.slice(0, 32)}...` : tag}
|
||||
</button>
|
||||
</Tooltip>
|
||||
{/each}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user