aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2024-02-22 18:19:28 +0200
committerHenry Jameson <me@hjkos.com>2024-02-22 18:19:28 +0200
commitabd1407a0bd105aa6c6ccf7c51d3d726a2a1bc73 (patch)
treecbdb700ffbebc3b4984d9828ac2207f0f9441900
parent6536fe229b9d50c38bf29c435b8e0a99889111f1 (diff)
fix emoji inputs having odd paddings and line-height
-rw-r--r--src/App.scss2
-rw-r--r--src/components/emoji_input/emoji_input.vue4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/App.scss b/src/App.scss
index 41e445d2..b9aded41 100644
--- a/src/App.scss
+++ b/src/App.scss
@@ -531,7 +531,7 @@ textarea {
}
// Textareas should have stock line-height + vertical padding instead of huge line-height
-textarea {
+textarea.input {
padding: var(--_padding);
line-height: var(--post-line-height);
}
diff --git a/src/components/emoji_input/emoji_input.vue b/src/components/emoji_input/emoji_input.vue
index 85a6cfe7..ad5ec0a4 100644
--- a/src/components/emoji_input/emoji_input.vue
+++ b/src/components/emoji_input/emoji_input.vue
@@ -113,6 +113,7 @@
@import "../../variables";
.input.emoji-input {
+ padding: 0;
display: flex;
flex-direction: column;
position: relative;
@@ -145,7 +146,6 @@
textarea {
flex: 1 0 auto;
color: inherit;
- padding: 0;
// stylint-disable-next-line declaration-no-important
background: none !important;
box-shadow: none;
@@ -158,7 +158,7 @@
}
.hidden-overlay {
- opacity: 0;
+ opacity: 1;
pointer-events: none;
position: absolute;
top: 0;