From dca172cafc1f1d8bb2a214224f08c65de0ce4192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 6 Feb 2019 12:42:43 +0100 Subject: Add inline actions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/components/TimelineEntry.vue | 48 +++++++++++++++++++++------------------- src/main.js | 3 +++ 2 files changed, 28 insertions(+), 23 deletions(-) (limited to 'src') diff --git a/src/components/TimelineEntry.vue b/src/components/TimelineEntry.vue index a6a621f2..19c08d88 100644 --- a/src/components/TimelineEntry.vue +++ b/src/components/TimelineEntry.vue @@ -25,17 +25,20 @@
+
+ +
+ +
+ +
+
+
-
- -
- -
-
@@ -69,11 +72,6 @@ export default { computed: { popoverMenu() { var actions = [ - { - action: () => { this.$root.$emit('composer-reply', this.item) }, - icon: 'icon-reply', - text: t('social', 'Reply to post') - } ] if (this.item.actor_info.account === this.cloudId) { actions.push( @@ -118,6 +116,9 @@ export default { methods: { userDisplayName(actorInfo) { return actorInfo.name !== '' ? actorInfo.name : actorInfo.preferredUsername + }, + reply() { + this.$root.$emit('composer-reply', this.item) } } } @@ -128,10 +129,6 @@ export default { margin-bottom: 10px; } - .social__welcome h3 { - margin-top: 0; - } - .post-author { font-weight: bold; } @@ -158,15 +155,24 @@ export default { } .post-actions { - position: relative; - width: 44px; + margin-left: -13px; height: 44px; - float: right; + .post-actions-more { + position: relative; + width: 44px; + height: 34px; + display: inline-block; + } + .icon-reply, .icon-more { display: inline-block; width: 44px; - height: 44px; + height: 34px; + opacity: .5; + &:hover, &:focus { + opacity: 1; + } } } @@ -184,10 +190,6 @@ export default { .post-timestamp { opacity: .7; } - - .icon-reply { - background-image: url(../../img/reply.svg); - }