fix(notifications): show full title on notification pane and truncate toasts

This commit is contained in:
Ajit Mehrotra
2025-12-09 15:00:47 -05:00
parent 501cb0ab4a
commit 7351c000b2
2 changed files with 3 additions and 2 deletions

View File

@@ -45,7 +45,8 @@ export default {
// https://ui.nuxt.com/docs/components/toast#theme
toast: {
slots: {
title: 'truncate pr-6',
title: 'truncate', // can also use break-words instead of truncating
description: 'truncate',
},
},

View File

@@ -94,7 +94,7 @@ const reformattedTimestamp = computed<string>(() => {
>
<!-- the `translate` compensates for extra space added by the `svg` element when rendered -->
<UIcon v-if="icon" :name="icon.name" class="size-5 shrink-0 translate-y-1" :class="icon.color" />
<span class="flex-1 truncate" :title="title">{{ title }}</span>
<span class="flex-1 break-words" :title="title">{{ title }}</span>
</h3>
<div