Skip to content

Commit

Permalink
fix(Alert): improve description alignment when no title provided
Browse files Browse the repository at this point in the history
Resolves #1408
  • Loading branch information
benjamincanac committed Feb 28, 2024
1 parent 7dd9ee5 commit ca4f06a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/elements/Alert.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit ca4f06a

Please sign in to comment.