Skip to content

Commit

Permalink
fix(Alert): prevent gap when no close button or action
Browse files Browse the repository at this point in the history
Fixes #831
  • Loading branch information
benjamincanac committed Nov 14, 2023
1 parent de38afd commit 9a1a1b8
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 @@ -20,7 +20,7 @@
<UButton v-for="(action, index) of actions" :key="index" v-bind="{ ...ui.default.actionButton, ...action }" @click.stop="action.click" />
</div>
</div>
<div class="flex-shrink-0 flex items-center gap-3">
<div v-if="closeButton || (!description && !$slots.description && actions.length)" class="flex-shrink-0 flex items-center gap-3">
<div v-if="!description && !$slots.description && actions.length" class="flex items-center gap-2">
<UButton v-for="(action, index) of actions" :key="index" v-bind="{ ...ui.default.actionButton, ...action }" @click.stop="action.click" />
</div>
Expand Down

0 comments on commit 9a1a1b8

Please sign in to comment.