fix: Update the height of the input based on the rows (#8373)

This commit is contained in:
Pranav Raj S
2023-11-17 17:29:44 -08:00
committed by GitHub
parent f23e33c1a9
commit 2c5a0abcce
5 changed files with 9 additions and 2 deletions

View File

@@ -12,6 +12,7 @@
<div v-else class="chat-message-input is-focused">
<resizable-text-area
id="chat-input"
:rows="1"
:placeholder="
$t('INBOX_MGMT.WIDGET_BUILDER.FOOTER.CHAT_INPUT_PLACEHOLDER')
"

View File

@@ -3,7 +3,7 @@
<resizable-text-area
v-model="articleTitle"
type="text"
rows="1"
:rows="1"
class="article-heading"
:placeholder="$t('HELP_CENTER.EDIT_ARTICLE.TITLE_PLACEHOLDER')"
@focus="onFocus"

View File

@@ -17,7 +17,7 @@
<resizable-text-area
v-else
v-model="greetingsMessage"
rows="4"
:rows="4"
type="text"
class="greetings--textarea"
:label="label"

View File

@@ -2,6 +2,7 @@
<textarea
ref="textarea"
:placeholder="placeholder"
:rows="rows"
:value="value"
@input="onInput"
@focus="onFocus"
@@ -36,6 +37,10 @@ export default {
type: String,
default: '',
},
rows: {
type: Number,
default: 2,
},
// add this as a prop, so that we won't have to include uiSettingsMixin
sendWithSignature: {
type: Boolean,

View File

@@ -8,6 +8,7 @@
id="chat-input"
ref="chatInput"
v-model="userInput"
:rows="1"
:aria-label="$t('CHAT_PLACEHOLDER')"
:placeholder="$t('CHAT_PLACEHOLDER')"
class="form-input user-message-input is-focused"