aboutsummaryrefslogtreecommitdiff
path: root/src/components/emoji_input
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2024-02-28 01:23:43 +0200
committerHenry Jameson <me@hjkos.com>2024-02-28 01:23:43 +0200
commitfe93717d47792eef88f4ec6200260f457d1e0bd2 (patch)
tree1c828e4953f36bdf69be5d3e33c136c7cd13ef7d /src/components/emoji_input
parentf4d48e401abd7789968e0b3decd50fc62bd7bc29 (diff)
consistent menu-items
Diffstat (limited to 'src/components/emoji_input')
-rw-r--r--src/components/emoji_input/emoji_input.js2
-rw-r--r--src/components/emoji_input/emoji_input.vue20
2 files changed, 10 insertions, 12 deletions
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;
}
}