mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-28 19:00:35 +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">
|
<Transition appear v-bind="ui.transition">
|
||||||
<div
|
<div
|
||||||
:class="wrapperClass"
|
:class="wrapperClass"
|
||||||
role="status"
|
role="status"
|
||||||
v-bind="attrs"
|
v-bind="attrs"
|
||||||
@mouseover="onMouseover"
|
@mouseover="onMouseover"
|
||||||
@mouseleave="onMouseleave"
|
@mouseleave="onMouseleave"
|
||||||
>
|
>
|
||||||
<div :class="[ui.container, ui.rounded, ui.ring]">
|
<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)" />
|
<UButton v-for="(action, index) of actions" :key="index" v-bind="{ ...ui.default.actionButton, ...action }" @click.stop="onAction(action)" />
|
||||||
</div>
|
</div>
|
||||||
</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">
|
<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)" />
|
<UButton v-for="(action, index) of actions" :key="index" v-bind="{ ...ui.default.actionButton, ...action }" @click.stop="onAction(action)" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user