Files
habitica/website/client/components/snackbars/notifications.vue
T
Philip Karpiak 64e86bad91 Move notification snackbars when resting bar is shown (#10177)
Allows top-most notification to still be shown
2018-03-30 15:34:06 -05:00

35 lines
618 B
Vue

<template lang="pug">
.notifications
div(v-for='notification in notifications', :key='notification.uuid')
notification(:notification='notification')
</template>
<style lang="scss" scoped>
.notifications {
position: fixed;
right: 10px;
top: 65px;
width: 350px;
z-index: 1041; // 1041 is above modal backgrounds
&.restingInn {
top: 105px;
}
}
</style>
<script>
import notification from './notification';
export default {
components: {
notification,
},
computed: {
notifications () {
return this.$store.state.notificationStore;
},
},
};
</script>