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

Resolves #1408
This commit is contained in:
Benjamin Canac
2024-02-28 12:52:43 +01:00
parent 7dd9ee528e
commit ca4f06a313

View File

@@ -10,7 +10,7 @@
{{ title }}
</slot>
</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">
{{ description }}
</slot>