fix: Update the height of the input based on the rows (#8373)
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
<div v-else class="chat-message-input is-focused">
|
<div v-else class="chat-message-input is-focused">
|
||||||
<resizable-text-area
|
<resizable-text-area
|
||||||
id="chat-input"
|
id="chat-input"
|
||||||
|
:rows="1"
|
||||||
:placeholder="
|
:placeholder="
|
||||||
$t('INBOX_MGMT.WIDGET_BUILDER.FOOTER.CHAT_INPUT_PLACEHOLDER')
|
$t('INBOX_MGMT.WIDGET_BUILDER.FOOTER.CHAT_INPUT_PLACEHOLDER')
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<resizable-text-area
|
<resizable-text-area
|
||||||
v-model="articleTitle"
|
v-model="articleTitle"
|
||||||
type="text"
|
type="text"
|
||||||
rows="1"
|
:rows="1"
|
||||||
class="article-heading"
|
class="article-heading"
|
||||||
:placeholder="$t('HELP_CENTER.EDIT_ARTICLE.TITLE_PLACEHOLDER')"
|
:placeholder="$t('HELP_CENTER.EDIT_ARTICLE.TITLE_PLACEHOLDER')"
|
||||||
@focus="onFocus"
|
@focus="onFocus"
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<resizable-text-area
|
<resizable-text-area
|
||||||
v-else
|
v-else
|
||||||
v-model="greetingsMessage"
|
v-model="greetingsMessage"
|
||||||
rows="4"
|
:rows="4"
|
||||||
type="text"
|
type="text"
|
||||||
class="greetings--textarea"
|
class="greetings--textarea"
|
||||||
:label="label"
|
:label="label"
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
<textarea
|
<textarea
|
||||||
ref="textarea"
|
ref="textarea"
|
||||||
:placeholder="placeholder"
|
:placeholder="placeholder"
|
||||||
|
:rows="rows"
|
||||||
:value="value"
|
:value="value"
|
||||||
@input="onInput"
|
@input="onInput"
|
||||||
@focus="onFocus"
|
@focus="onFocus"
|
||||||
@@ -36,6 +37,10 @@ export default {
|
|||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
rows: {
|
||||||
|
type: Number,
|
||||||
|
default: 2,
|
||||||
|
},
|
||||||
// add this as a prop, so that we won't have to include uiSettingsMixin
|
// add this as a prop, so that we won't have to include uiSettingsMixin
|
||||||
sendWithSignature: {
|
sendWithSignature: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
id="chat-input"
|
id="chat-input"
|
||||||
ref="chatInput"
|
ref="chatInput"
|
||||||
v-model="userInput"
|
v-model="userInput"
|
||||||
|
:rows="1"
|
||||||
:aria-label="$t('CHAT_PLACEHOLDER')"
|
:aria-label="$t('CHAT_PLACEHOLDER')"
|
||||||
:placeholder="$t('CHAT_PLACEHOLDER')"
|
:placeholder="$t('CHAT_PLACEHOLDER')"
|
||||||
class="form-input user-message-input is-focused"
|
class="form-input user-message-input is-focused"
|
||||||
|
|||||||
Reference in New Issue
Block a user