Browse Source

fix(nc-gui): use text area instead of input for form label and helper text

pull/7664/head
Ramesh Mane 9 months ago
parent
commit
54c2ad5aeb
  1. 21
      packages/nc-gui/components/smartsheet/Form.vue

21
packages/nc-gui/components/smartsheet/Form.vue

@ -523,7 +523,7 @@ const onFormItemClick = (element: any) => {
'max-height': '250px', 'max-height': '250px',
'resize': 'vertical', 'resize': 'vertical',
}" }"
autosize auto-size
size="large" size="large"
hide-details hide-details
:disabled="isLocked" :disabled="isLocked"
@ -551,7 +551,7 @@ const onFormItemClick = (element: any) => {
'resize': 'vertical', 'resize': 'vertical',
}" }"
size="large" size="large"
autosize auto-size
hide-details hide-details
:placeholder="$t('msg.info.formDesc')" :placeholder="$t('msg.info.formDesc')"
:bordered="false" :bordered="false"
@ -693,21 +693,24 @@ const onFormItemClick = (element: any) => {
</a-form-item> </a-form-item>
<a-form-item class="my-0 !mb-2"> <a-form-item class="my-0 !mb-2">
<a-input <a-textarea
v-model:value="element.label" v-model:value="element.label"
type="text" :rows="1"
auto-size
hide-details
class="form-meta-input nc-form-input-label" class="form-meta-input nc-form-input-label"
data-testid="nc-form-input-label" data-testid="nc-form-input-label"
:placeholder="$t('msg.info.formInput')" :placeholder="$t('msg.info.formInput')"
@change="updateColMeta(element)" @change="updateColMeta(element)"
> />
</a-input>
</a-form-item> </a-form-item>
<a-form-item class="!my-0 !mb-3"> <a-form-item class="!my-0 !mb-3">
<a-input <a-textarea
v-model:value="element.description" v-model:value="element.description"
type="text" :rows="1"
auto-size
hide-details
class="form-meta-input text-sm nc-form-input-help-text" class="form-meta-input text-sm nc-form-input-help-text"
data-testid="nc-form-input-help-text" data-testid="nc-form-input-help-text"
:placeholder="$t('msg.info.formHelpText')" :placeholder="$t('msg.info.formHelpText')"
@ -1137,7 +1140,7 @@ const onFormItemClick = (element: any) => {
@apply !px-4 !py-2; @apply !px-4 !py-2;
} }
.nc-form-input-help-text { .nc-form-input-help-text {
@apply !px-3 !py-1; @apply !px-4 !py-1;
} }
.nc-form-help-text, .nc-form-help-text,

Loading…
Cancel
Save