From bee77ffdb284601720b9a13a19ca029af258d617 Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Thu, 26 Nov 2020 18:23:53 +0200 Subject: [PATCH] fix retweet event handler, fix text being selectable for status action counters --- src/App.scss | 5 --- .../favorite_button/favorite_button.vue | 24 ++++++++++--- .../notifications/notifications.vue | 2 +- src/components/reply_button/reply_button.vue | 25 +++++++++++--- .../retweet_button/retweet_button.vue | 34 +++++++++++++------ 5 files changed, 65 insertions(+), 25 deletions(-) diff --git a/src/App.scss b/src/App.scss index b2c7be13..cdc3209c 100644 --- a/src/App.scss +++ b/src/App.scss @@ -173,11 +173,6 @@ a { color: var(--link, $fallback--link); } - &.-padded { - padding: 10px; - margin: -10px; - } - &.-fullwidth { width: 100%; } diff --git a/src/components/favorite_button/favorite_button.vue b/src/components/favorite_button/favorite_button.vue index d54ae78c..9fc4f9d8 100644 --- a/src/components/favorite_button/favorite_button.vue +++ b/src/components/favorite_button/favorite_button.vue @@ -1,8 +1,8 @@ @@ -29,8 +34,19 @@ @import '../../_variables.scss'; .FavoriteButton { - &.-interactive { + display: flex; + > :first-child { + padding: 10px; + margin: -10px -5px -10px -10px; + } + + .action-counter { + pointer-events: none; + user-select: none; + } + + .interactive { .svg-inline--fa { animation-duration: 0.6s; } diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index 725d1ad4..4cdb436c 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -43,7 +43,7 @@