Skip to content

Commit

Permalink
Merge pull request writer#510 from madeindjs/WF-40
Browse files Browse the repository at this point in the history
fix(ui): avoid builder `textarea` H resizable. WF-40
  • Loading branch information
ramedina86 authored Aug 12, 2024
2 parents 77c8d41 + 2f1f9a5 commit bbe184b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ui/src/builder/BuilderFieldsObject.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<BuilderTemplateInput
class="BuilderFieldsObject"
:data-automation-key="props.fieldKey"
multiline="true"
multiline
variant="code"
:value="component.content[fieldKey]"
:placeholder="templateField.placeholder"
Expand Down
2 changes: 1 addition & 1 deletion src/ui/src/builder/BuilderFieldsText.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</template>
<template v-else-if="templateField.control == FieldControl.Textarea">
<BuilderTemplateInput
multiline="true"
multiline
variant="text"
class="content"
:value="component.content[fieldKey]"
Expand Down
5 changes: 5 additions & 0 deletions src/ui/src/builder/BuilderTemplateInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
autocorrect="off"
autocomplete="off"
spellcheck="false"
rows="3"
:placeholder="props.placeholder"
@input="handleInput"
></textarea>
Expand Down Expand Up @@ -237,4 +238,8 @@ const handleBlur = () => {
.fieldStateAutocompleteOption:hover {
background-color: var(--builderSubtleHighlightColorSolid);
}
textarea {
resize: vertical;
}
</style>

0 comments on commit bbe184b

Please sign in to comment.