fix(Notification): improve description alignment when no title provided

This commit is contained in:
Benjamin Canac
2024-02-28 12:52:53 +01:00
parent ca4f06a313
commit 9cce4456d0

View File

@@ -18,7 +18,7 @@
{{ title }} {{ title }}
</slot> </slot>
</p> </p>
<p v-if="(description || $slots.description)" :class="ui.description"> <p v-if="(description || $slots.description)" :class="twMerge(ui.description, !(title && $slots.title) && 'mt-0 leading-5')">
<slot name="description" :description="description"> <slot name="description" :description="description">
{{ description }} {{ description }}
</slot> </slot>