From fe93717d47792eef88f4ec6200260f457d1e0bd2 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 28 Feb 2024 01:23:43 +0200 Subject: consistent menu-items --- src/components/emoji_input/emoji_input.js | 2 +- src/components/emoji_input/emoji_input.vue | 20 +++++++++----------- 2 files changed, 10 insertions(+), 12 deletions(-) (limited to 'src/components/emoji_input') diff --git a/src/components/emoji_input/emoji_input.js b/src/components/emoji_input/emoji_input.js index 9baf63f2..3cc58bd1 100644 --- a/src/components/emoji_input/emoji_input.js +++ b/src/components/emoji_input/emoji_input.js @@ -270,7 +270,7 @@ const EmojiInput = { if (newValue) { this.$refs.suggestorPopover.showPopover() } else { - this.$refs.suggestorPopover.hidePopover() + // this.$refs.suggestorPopover.hidePopover() } }, textAtCaret: async function (newWord) { diff --git a/src/components/emoji_input/emoji_input.vue b/src/components/emoji_input/emoji_input.vue index 8c18ec7b..e016aff1 100644 --- a/src/components/emoji_input/emoji_input.vue +++ b/src/components/emoji_input/emoji_input.vue @@ -185,23 +185,21 @@ position: absolute; } - &-item { + &-item.menu-item { display: flex; - cursor: pointer; - padding: 0.2em 0.4em; - height: 32px; + padding-top: 0; + padding-bottom: 0; .image { - width: 32px; - height: 32px; - line-height: 32px; + width: calc(var(--__line-height) + var(--__vertical-gap) * 2); + height: calc(var(--__line-height) + var(--__vertical-gap) * 2); + line-height: var(--__line-height); text-align: center; - font-size: 32px; - margin-right: 4px; + margin-right: var(--__horizontal-gap); img { - width: 32px; - height: 32px; + width: calc(var(--__line-height) + var(--__vertical-gap) * 2); + height: calc(var(--__line-height) + var(--__vertical-gap) * 2); object-fit: contain; } } -- cgit v1.2.3-70-g09d2