mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
fix(Notification): prevent gap when no close button or action
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
<Transition appear v-bind="ui.transition">
|
||||
<div
|
||||
:class="wrapperClass"
|
||||
role="status"
|
||||
role="status"
|
||||
v-bind="attrs"
|
||||
@mouseover="onMouseover"
|
||||
@mouseover="onMouseover"
|
||||
@mouseleave="onMouseleave"
|
||||
>
|
||||
<div :class="[ui.container, ui.rounded, ui.ring]">
|
||||
@@ -29,7 +29,7 @@
|
||||
<UButton v-for="(action, index) of actions" :key="index" v-bind="{ ...ui.default.actionButton, ...action }" @click.stop="onAction(action)" />
|
||||
</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="onAction(action)" />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user