From 73127f0e2587ae2e06c3480451e9ea7fce3ce4c7 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 8 Jun 2021 13:42:16 +0300 Subject: [PATCH] fix empty spaces again --- src/components/mention_link/mention_link.scss | 5 +++-- src/components/rich_content/rich_content.jsx | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/mention_link/mention_link.scss b/src/components/mention_link/mention_link.scss index 261aeaef87..5b5218f71c 100644 --- a/src/components/mention_link/mention_link.scss +++ b/src/components/mention_link/mention_link.scss @@ -3,7 +3,6 @@ white-space: normal; display: inline-block; color: var(--link); - margin-right: 0.25em; & .new, & .original { @@ -12,7 +11,7 @@ } .original { - opacity: 0.5; + margin-right: 0.25em; } .full { @@ -39,6 +38,8 @@ } .new { + margin-right: 0.25em; + &.-you { & .shortName, & .full { diff --git a/src/components/rich_content/rich_content.jsx b/src/components/rich_content/rich_content.jsx index 26a64f28d0..bb7ae73916 100644 --- a/src/components/rich_content/rich_content.jsx +++ b/src/components/rich_content/rich_content.jsx @@ -46,8 +46,8 @@ export default Vue.component('RichContent', { const processItem = (item) => { // Handle text noes - just add emoji if (typeof item === 'string') { - const emptyText = item.trim() - if (!emptyText) { + const emptyText = item.trim() === '' + if (emptyText) { return encounteredText ? item : item.trim() } let unescapedItem = unescape(item)