after nine years of development, hopefully, it has been worth the weight
This commit is contained in:
parent
5efd8a4aa6
commit
0c4dc26808
11 changed files with 72 additions and 17 deletions
|
@ -1,4 +1,5 @@
|
|||
import Status from '../status/status.vue'
|
||||
import StillImage from '../still-image/still-image.vue'
|
||||
|
||||
import { sortBy, take, filter } from 'lodash'
|
||||
|
||||
|
@ -31,7 +32,7 @@ const Notifications = {
|
|||
}
|
||||
},
|
||||
components: {
|
||||
Status
|
||||
Status, StillImage
|
||||
},
|
||||
watch: {
|
||||
unseenCount (count) {
|
||||
|
|
|
@ -88,10 +88,26 @@
|
|||
}
|
||||
|
||||
.avatar {
|
||||
padding-top: 0.3em;
|
||||
margin-top: 0.3em;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
line-height: 0;
|
||||
|
||||
&.animated::before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
&:hover .animated.avatar {
|
||||
canvas {
|
||||
display: none;
|
||||
}
|
||||
img {
|
||||
visibility: visible;
|
||||
}
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<div v-for="notification in visibleNotifications" :key="notification" class="notification" :class='{"unseen": !notification.seen}'>
|
||||
<div>
|
||||
<a :href="notification.action.user.statusnet_profile_url" target="_blank">
|
||||
<img class='avatar' :src="notification.action.user.profile_image_url_original">
|
||||
<StillImage class='avatar' :src="notification.action.user.profile_image_url_original"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class='text' style="width: 100%;">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue