Browse Source

fix: auto sizing text area

pull/6500/head
sreehari jayaraj 1 year ago
parent
commit
31a832f233
  1. 22
      packages/nc-gui/components/cell/Checkbox.vue
  2. 2
      packages/nc-gui/components/smartsheet/Form.vue

22
packages/nc-gui/components/cell/Checkbox.vue

@ -89,16 +89,18 @@ useSelectedCellKeyupListener(active, (e) => {
}"
@click="onClick(false, $event)"
>
<div class="items-center py-2" :class="{ 'w-full justify-start': isEditColumnMenu || isGallery }" @click="onClick(true)">
<Transition name="layout" mode="out-in" :duration="100">
<component
:is="getMdiIcon(vModel ? checkboxMeta.icon.checked : checkboxMeta.icon.unchecked)"
class="nc-checkbox"
:style="{
color: checkboxMeta.color,
}"
/>
</Transition>
<div class="items-center" :class="{ 'w-full justify-start': isEditColumnMenu || isGallery || isForm }" @click="onClick(true)">
<div :class="{ 'bg-gray-100 rounded-full ': !vModel }">
<Transition name="layout" mode="out-in" :duration="100">
<component
:is="getMdiIcon(vModel ? checkboxMeta.icon.checked : checkboxMeta.icon.unchecked)"
class="nc-checkbox"
:style="{
color: checkboxMeta.color,
}"
/>
</Transition>
</div>
</div>
</div>
</template>

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

@ -556,6 +556,7 @@ watch(view, (nextView) => {
'max-height': '250px',
'resize': 'vertical',
}"
autosize
size="large"
hide-details
placeholder="Form Title"
@ -581,6 +582,7 @@ watch(view, (nextView) => {
'resize': 'vertical',
}"
size="large"
autosize
hide-details
:placeholder="$t('msg.info.formDesc')"
:bordered="false"

Loading…
Cancel
Save