Skip to content

Commit

Permalink
chore: add mising transition-group
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszjedrasik committed Jan 8, 2021
1 parent 050826a commit bfa9336
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="notifications">
<transition-group tag='div' class="notifications" name='sf-fade'>
<SfNotification
v-for="notification in notifications"
:key="notification.id"
Expand All @@ -14,7 +14,7 @@
<SfIcon :icon="notification.icon" color="white"/>
</template>
</SfNotification>
</div>
</transition-group>
</template>

<script>
Expand Down Expand Up @@ -53,7 +53,11 @@ export default {
}
}
.sf-notification {
margin: 0 auto var(--spacer-xs) auto;
max-width: 100%;
margin: var(--spacer-xs) auto 0 auto;
&:first-child {
margin-top: 0;
}
@include for-desktop {
margin: 0 0 var(--spacer-xs) 0;
}
Expand Down

0 comments on commit bfa9336

Please sign in to comment.