Skip to content

Commit 2c55fb6

Browse files
committedJul 16, 2024·
fix(Alert/Notification): missing margin on description
Resolves #1959
1 parent e2881d3 commit 2c55fb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/runtime/components/elements/Alert.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{{ title }}
1515
</slot>
1616
</p>
17-
<div v-if="description || $slots.description" :class="twMerge(ui.description, !(title && $slots.title) && 'mt-0 leading-5')">
17+
<div v-if="description || $slots.description" :class="twMerge(ui.description, !title && !$slots.title && 'mt-0 leading-5')">
1818
<slot name="description" :description="description">
1919
{{ description }}
2020
</slot>

‎src/runtime/components/overlays/Notification.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{{ title }}
1919
</slot>
2020
</p>
21-
<div v-if="(description || $slots.description)" :class="twMerge(ui.description, !(title && $slots.title) && 'mt-0 leading-5')">
21+
<div v-if="(description || $slots.description)" :class="twMerge(ui.description, !title && !$slots.title && 'mt-0 leading-5')">
2222
<slot name="description" :description="description">
2323
{{ description }}
2424
</slot>

0 commit comments

Comments
 (0)
Please sign in to comment.