Fix user status message input

Signed-off-by: Christopher Ng <chrng8@gmail.com>
pull/36258/head
Christopher Ng 2023-01-19 18:38:31 +07:00
parent 3f231d68d7
commit 5ab35aaa7a
6 changed files with 44 additions and 40 deletions

@ -19,25 +19,27 @@
-
-->
<template>
<div class="custom-input__form">
<NcEmojiPicker container=".custom-input__form" @select="setIcon">
<NcButton class="custom-input__emoji-button" type="tertiary-no-background">
<div class="custom-input">
<NcEmojiPicker container=".custom-input" @select="setIcon">
<NcButton class="custom-input__emoji-button" type="tertiary">
{{ visibleIcon }}
</NcButton>
</NcEmojiPicker>
<label class="hidden-visually" for="user_status_message">
{{ t('user_status', 'What is your status?') }}
</label>
<input id="user_status_message"
ref="input"
maxlength="80"
:disabled="disabled"
:placeholder="$t('user_status', 'What is your status?')"
type="text"
:value="message"
@change="onChange"
@keyup="onKeyup"
@paste="onKeyup">
<div class="custom-input__container">
<label class="hidden-visually" for="user_status_message">
{{ t('user_status', 'What is your status?') }}
</label>
<input id="user_status_message"
ref="input"
maxlength="80"
:disabled="disabled"
:placeholder="$t('user_status', 'What is your status?')"
type="text"
:value="message"
@change="onChange"
@keyup="onKeyup"
@paste="onKeyup">
</div>
</div>
</template>
@ -112,18 +114,30 @@ export default {
</script>
<style lang="scss" scoped>
.custom-input__form {
flex-grow: 1;
position: relative;
.custom-input {
display: flex;
width: 100%;
.v-popper {
position: absolute;
&__emoji-button {
min-height: 36px;
padding: 0;
border: 2px solid var(--color-border-maxcontrast);
border-right: none;
border-radius: var(--border-radius) 0 0 var(--border-radius);
&:hover {
border-color: var(--color-primary-element);
}
}
input {
&__container {
width: 100%;
border-radius: 0 var(--border-radius) var(--border-radius) 0;
padding-left: 44px !important;
input {
width: 100%;
margin: 0;
border-radius: 0 var(--border-radius) var(--border-radius) 0;
}
}
}
</style>

@ -246,16 +246,6 @@ export default {
display: flex;
width: 100%;
margin-bottom: 10px;
.custom-input__emoji-button {
flex-basis: 40px;
flex-grow: 0;
width: 40px;
height: 34px;
margin-right: 0;
border-right: none;
border-radius: var(--border-radius) 0 0 var(--border-radius);
}
}
.status-buttons {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long