From 09a5a785275f717e918365142c16ed695fe0f05b Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 15 Nov 2023 21:58:43 +0100 Subject: [PATCH] Fix discrepancy for `autosuggest-emoji` class --- .../glitch/components/autosuggest_emoji.jsx | 2 +- .../components/autosuggest_account.jsx | 4 ++-- .../styles/components/compose_form.scss | 19 ++++++++++--------- 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/app/javascript/flavours/glitch/components/autosuggest_emoji.jsx b/app/javascript/flavours/glitch/components/autosuggest_emoji.jsx index 7c4f758b0f..eb25f5a643 100644 --- a/app/javascript/flavours/glitch/components/autosuggest_emoji.jsx +++ b/app/javascript/flavours/glitch/components/autosuggest_emoji.jsx @@ -28,7 +28,7 @@ export default class AutosuggestEmoji extends PureComponent { } return ( -
+
-
+
+
); diff --git a/app/javascript/flavours/glitch/styles/components/compose_form.scss b/app/javascript/flavours/glitch/styles/components/compose_form.scss index db20ff49ac..0f64c0dcc1 100644 --- a/app/javascript/flavours/glitch/styles/components/compose_form.scss +++ b/app/javascript/flavours/glitch/styles/components/compose_form.scss @@ -308,9 +308,9 @@ background: darken($ui-secondary-color, 10%); } - > .account, - > .emoji, - > .autosuggest-hashtag { + .autosuggest-account, + .autosuggest-emoji, + .autosuggest-hashtag { display: flex; flex-direction: row; align-items: center; @@ -342,12 +342,13 @@ } } - & > .account.small { - .display-name { - & > span { - color: $lighter-text-color; - } - } + .autosuggest-account-icon, + .autosuggest-emoji img { + margin-inline-end: 8px; + } + + .autosuggest-account .display-name > span { + color: $lighter-text-color; } }