From 74931dece7d68167e5134e77e738c39f62a11146 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Thu, 23 Feb 2017 00:26:37 +0100 Subject: Revert "Show actual status in notifications when mentioned." This reverts commit 0e1ab69c33f155865adc27d940a2542ffdcec30a. --- src/components/notifications/notifications.js | 4 -- src/components/notifications/notifications.scss | 62 ++++++++++++------------- src/components/notifications/notifications.vue | 34 +++++++------- 3 files changed, 46 insertions(+), 54 deletions(-) (limited to 'src/components/notifications') diff --git a/src/components/notifications/notifications.js b/src/components/notifications/notifications.js index 390ade6a..c8d5e212 100644 --- a/src/components/notifications/notifications.js +++ b/src/components/notifications/notifications.js @@ -1,5 +1,4 @@ import { sortBy, take, filter } from 'lodash' -import Status from '../status/status.vue' const Notifications = { data () { @@ -7,9 +6,6 @@ const Notifications = { visibleNotificationCount: 10 } }, - components: { - Status - }, computed: { notifications () { return this.$store.state.statuses.notifications diff --git a/src/components/notifications/notifications.scss b/src/components/notifications/notifications.scss index 65efb103..517afeaa 100644 --- a/src/components/notifications/notifications.scss +++ b/src/components/notifications/notifications.scss @@ -1,44 +1,42 @@ @import '../../_variables.scss'; .notification { + padding: 0.4em 0 0 0.7em; + display: flex; border-bottom: 1px solid silver; - .notification-base { - padding: 0.4em 0 0 0.7em; - display: flex; - .avatar { - padding-top: 0.3em; - width: 32px; - height: 32px; - border-radius: 50%; - } + .text { + min-width: 0px; + word-wrap: break-word; + line-height:18px; - .text { - min-width: 0px; - word-wrap: break-word; - line-height:18px; + .icon-retweet { + color: $green; + } - .icon-retweet { - color: $green; - } + .icon-reply { + color: $blue; + } - .icon-reply { - color: $blue; - } + h1 { + margin: 0 0 0.3em; + padding: 0; + font-size: 1em; + line-height:20px; + } - h1 { - margin: 0 0 0.3em; - padding: 0; - font-size: 1em; - line-height:20px; - } + padding: 0.3em 0.8em 0.5em; + p { + margin: 0; + margin-top: 0; + margin-bottom: 0.3em; + } + } - padding: 0.3em 0.8em 0.5em; - p { - margin: 0; - margin-top: 0; - margin-bottom: 0.3em; - } - } + .avatar { + padding-top: 0.3em; + width: 32px; + height: 32px; + border-radius: 50%; } &:last-child { diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index c14abf27..785cc019 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -4,26 +4,24 @@
Notifications ({{unseenCount}})
-
- - - -
- -
-

{{ notification.action.user.name }}
favorited your status

-

{{ notification.status.text }}

-
-
-

{{ notification.action.user.name }}
repeated your status

-

{{ notification.status.text }}

-
-
-

{{ notification.action.user.name }}
mentioned you

-
+ + + +
+ +
+

{{ notification.action.user.name }}
favorited your status

+

{{ notification.status.text }}

+
+
+

{{ notification.action.user.name }}
repeated your status

+

{{ notification.status.text }}

+
+
+

{{ notification.action.user.name }}
mentioned you

+

{{ notification.status.text }}

-
-- cgit v1.2.3-70-g09d2