From 2fa050b1630e11efd1db17ad8d63a88ec7a9c8f9 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 18 Aug 2020 00:26:02 +0300 Subject: [PATCH 01/10] Fix muted notifications --- src/components/notification/notification.scss | 52 +++++++++++++++++++ src/components/notification/notification.vue | 3 +- 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 src/components/notification/notification.scss diff --git a/src/components/notification/notification.scss b/src/components/notification/notification.scss new file mode 100644 index 00000000..d0e63d81 --- /dev/null +++ b/src/components/notification/notification.scss @@ -0,0 +1,52 @@ +// TODO Copypaste from Status, should unify it somehow +.Notification { + &.-muted { + padding: 0.25em 0.6em; + height: 1.2em; + line-height: 1.2em; + text-overflow: ellipsis; + overflow: hidden; + display: flex; + flex-wrap: nowrap; + + & .status-username, + & .mute-thread, + & .mute-words { + word-wrap: normal; + word-break: normal; + white-space: nowrap; + } + + & .status-username, + & .mute-words { + text-overflow: ellipsis; + overflow: hidden; + } + + .status-username { + font-weight: normal; + flex: 0 1 auto; + margin-right: 0.2em; + font-size: smaller; + } + + .mute-thread { + flex: 0 0 auto; + } + + .mute-words { + flex: 1 0 5em; + margin-left: 0.2em; + + &::before { + content: ' '; + } + } + + .unmute { + flex: 0 0 auto; + margin-left: auto; + display: block; + } + } +} diff --git a/src/components/notification/notification.vue b/src/components/notification/notification.vue index 044ac871..7fac3840 100644 --- a/src/components/notification/notification.vue +++ b/src/components/notification/notification.vue @@ -7,7 +7,7 @@
@@ -168,3 +168,4 @@ + From 30219098a6ba5ac5369f8c130676de7a7c8daea9 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 18 Aug 2020 00:26:31 +0300 Subject: [PATCH 02/10] fix issues with reply-link --- src/components/status/status.scss | 21 ++++++++++++++++++--- src/components/status/status.vue | 1 + 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/components/status/status.scss b/src/components/status/status.scss index 898e914f..7fbab3b8 100644 --- a/src/components/status/status.scss +++ b/src/components/status/status.scss @@ -133,6 +133,13 @@ $status-margin: 0.75em; margin-right: 0.5em; max-width: 100%; + .reply-to-link { + white-space: nowrap; + word-break: break-word; + text-overflow: ellipsis; + overflow-x: hidden; + } + .icon-reply { // mirror the icon transform: scaleX(-1); @@ -143,11 +150,20 @@ $status-margin: 0.75em; & .reply-to-no-popover { min-width: 0; margin-right: 0.4em; + flex-shrink: 0; } .reply-to-popover { - &:hover { + position: relative; + + .reply-to:hover::before { + content: ''; + display: block; + position: absolute; + bottom: 0; + width: 100%; border-bottom: 1px solid var(--faint); + pointer-events: none; } .faint-link:hover { @@ -156,8 +172,6 @@ $status-margin: 0.75em; } &.-strikethrough { - position: relative; - &::after { content: ''; display: block; @@ -165,6 +179,7 @@ $status-margin: 0.75em; top: 50%; width: 100%; border-bottom: 1px solid var(--faint); + pointer-events: none; } } } diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 27af4340..282ad37d 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -234,6 +234,7 @@ {{ $t('status.reply_to') }} From ecbbec7b9798caff1d401403592de5ba02a3f509 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 18 Aug 2020 00:26:44 +0300 Subject: [PATCH 03/10] work around incorrect styles ordering in status popover --- src/components/status_popover/status_popover.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/status_popover/status_popover.vue b/src/components/status_popover/status_popover.vue index 79a52e38..162eb210 100644 --- a/src/components/status_popover/status_popover.vue +++ b/src/components/status_popover/status_popover.vue @@ -38,7 +38,8 @@