From 0c4dc26808c3bb7508bf9005f3c3430f1c7e2039 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 12 Mar 2018 02:31:33 +0300 Subject: after nine years of development, hopefully, it has been worth the weight --- src/components/notifications/notifications.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/components/notifications/notifications.js') diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js index 5f0d7f26..e9b83bf0 100644 --- a/src/components/notifications/notifications.js +++ b/src/components/notifications/notifications.js @@ -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) { -- cgit v1.2.3-70-g09d2 From f4f9b3fa265df95ade97625cf2f870ded0825eb1 Mon Sep 17 00:00:00 2001 From: shpuld Date: Mon, 9 Apr 2018 19:43:31 +0300 Subject: small fixes --- src/components/attachment/attachment.js | 6 +- src/components/attachment/attachment.vue | 188 ++++--- src/components/conversation/conversation.vue | 2 +- src/components/notifications/notifications.js | 14 +- src/components/notifications/notifications.scss | 97 ++-- src/components/notifications/notifications.vue | 62 +-- src/components/status/status.js | 41 +- src/components/status/status.vue | 709 ++++++++++++++---------- src/i18n/messages.js | 16 +- 9 files changed, 666 insertions(+), 469 deletions(-) (limited to 'src/components/notifications/notifications.js') diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index cd72e571..163dd74f 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -6,7 +6,8 @@ const Attachment = { props: [ 'attachment', 'nsfw', - 'statusId' + 'statusId', + 'size' ], data () { return { @@ -29,6 +30,9 @@ const Attachment = { }, isEmpty () { return (this.type === 'html' && !this.attachment.oembed) || this.type === 'unknown' + }, + isSmall () { + return this.size === 'small' } }, methods: { diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index a1b35d91..2cc1ee57 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -1,5 +1,8 @@