Skip to content

Commit

Permalink
fix(Alert/Notification): missing margin on description
Browse files Browse the repository at this point in the history
Resolves #1959
  • Loading branch information
benjamincanac committed Jul 16, 2024
1 parent e2881d3 commit 2c55fb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/components/elements/Alert.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{{ title }}
</slot>
</p>
<div v-if="description || $slots.description" :class="twMerge(ui.description, !(title && $slots.title) && 'mt-0 leading-5')">
<div 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
2 changes: 1 addition & 1 deletion src/runtime/components/overlays/Notification.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{{ title }}
</slot>
</p>
<div v-if="(description || $slots.description)" :class="twMerge(ui.description, !(title && $slots.title) && 'mt-0 leading-5')">
<div 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 2c55fb6

Please sign in to comment.