From dc8a0e04a508a054988bba6569ee0f286f691dc2 Mon Sep 17 00:00:00 2001
From: Arjan Singh <1598641+arjansingh@users.noreply.github.com>
Date: Mon, 3 Nov 2025 11:59:42 -0800
Subject: [PATCH] fix(AssetCard): use tooltip instead of title for overflow
text (#6556)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
## Summary
The default `title` attribute was too small and too slow to show for
users. We were getting complaints about not being able to see the full
name of the model.
Using [Prime Vue's tooltip](https://primevue.org/tooltip) instead.
## Screenshots (if applicable)
Before:
After:
┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-6556-fix-AssetCard-use-tooltip-instead-of-title-for-overflow-text-2a06d73d365081939dc0d863b05f1e90)
by [Unito](https://www.unito.io)
---
src/platform/assets/components/AssetCard.vue | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/platform/assets/components/AssetCard.vue b/src/platform/assets/components/AssetCard.vue
index 3082c19c1..c9e8688fa 100644
--- a/src/platform/assets/components/AssetCard.vue
+++ b/src/platform/assets/components/AssetCard.vue
@@ -24,18 +24,19 @@
{{ asset.description }}
@@ -76,6 +76,7 @@ import { computed, useId } from 'vue' import AssetBadgeGroup from '@/platform/assets/components/AssetBadgeGroup.vue' import type { AssetDisplayItem } from '@/platform/assets/composables/useAssetBrowser' +import { useSettingStore } from '@/platform/settings/settingStore' import { cn } from '@/utils/tailwindUtil' const props = defineProps<{ @@ -83,9 +84,15 @@ const props = defineProps<{ interactive?: boolean }>() +const settingStore = useSettingStore() + const titleId = useId() const descId = useId() +const tooltipDelay = computed