Compare commits

..

2 commits

Author SHA1 Message Date
8f1aaf617a fix css 2022-06-12 14:13:04 +01:00
a9f8ec5453 add custom emoji display 2022-06-12 14:11:07 +01:00
3 changed files with 19 additions and 1 deletions

View file

@ -1,5 +1,11 @@
@import '../../_variables.scss';
.notification-reaction-emoji {
width: 40px;
display: flex;
flex-direction: column;
}
// TODO Copypaste from Status, should unify it somehow
.Notification {
border-bottom: 1px solid;

View file

@ -116,7 +116,18 @@
scope="global"
keypath="notifications.reacted_with"
>
<span class="emoji-reaction-emoji">{{ notification.emoji }}</span>
<img
v-if="notification.emoji_url !== null"
class="notification-reaction-emoji"
:src="notification.emoji_url"
:name="notification.emoji"
>
<span
v-else
class="emoji-reaction-emoji"
>
{{ notification.emoji }}
</span>
</i18n-t>
</small>
</span>

View file

@ -387,6 +387,7 @@ export const parseNotification = (data) => {
: parseUser(data.target)
output.from_profile = parseUser(data.account)
output.emoji = data.emoji
output.emoji_url = data.emoji_url
} else {
const parsedNotice = parseStatus(data.notice)
output.type = data.ntype