Browse Source

fix: auto sizing text area

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

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

@ -89,7 +89,8 @@ useSelectedCellKeyupListener(active, (e) => {
}"
@click="onClick(false, $event)"
>
<div class="items-center py-2" :class="{ 'w-full justify-start': isEditColumnMenu || isGallery }" @click="onClick(true)">
<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)"
@ -101,6 +102,7 @@ useSelectedCellKeyupListener(active, (e) => {
</Transition>
</div>
</div>
</div>
</template>
<style scoped lang="scss">

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