From 669b6dd94bf1e934b060c7f6e85359903bc2d405 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Thu, 22 Feb 2024 16:17:10 +0000 Subject: [PATCH] fix(nc-gui): textarea height issue in form view --- packages/nc-gui/components/cell/TextArea.vue | 6 +++--- packages/nc-gui/components/smartsheet/Cell.vue | 2 +- packages/nc-gui/components/smartsheet/Form.vue | 8 +++++++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/nc-gui/components/cell/TextArea.vue b/packages/nc-gui/components/cell/TextArea.vue index a4ea61f879..f7aaed246c 100644 --- a/packages/nc-gui/components/cell/TextArea.vue +++ b/packages/nc-gui/components/cell/TextArea.vue @@ -226,7 +226,7 @@ watch(inputWrapperRef, () => { v-else-if="editEnabled && !isVisible" :ref="focus" v-model="vModel" - rows="4" + :rows="isForm ? 5 : 4" class="h-full w-full outline-none border-none nc-scrollbar-lg" :class="{ 'p-2': editEnabled, @@ -234,7 +234,7 @@ watch(inputWrapperRef, () => { 'px-2': isExpandedFormOpen, }" :style="{ - minHeight: `${height}px`, + minHeight: isForm ? '117px' : `${height}px`, }" :placeholder="isEditColumn ? $t('labels.optional') : ''" :disabled="readOnly" @@ -270,7 +270,7 @@ watch(inputWrapperRef, () => {