From 5eaa33320d82cf11f2bf3a25656c657e1c71ad50 Mon Sep 17 00:00:00 2001 From: sreehari jayaraj Date: Wed, 27 Sep 2023 19:26:03 +0530 Subject: [PATCH] fix: prevent input hieght on focus --- packages/nc-gui/components/smartsheet/Cell.vue | 2 +- packages/nc-gui/components/smartsheet/Form.vue | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/Cell.vue b/packages/nc-gui/components/smartsheet/Cell.vue index 54dde747ff..099cc661b9 100644 --- a/packages/nc-gui/components/smartsheet/Cell.vue +++ b/packages/nc-gui/components/smartsheet/Cell.vue @@ -203,7 +203,7 @@ onUnmounted(() => { { 'text-brand-500': isPrimary(column) && !props.virtual && !isForm, 'nc-grid-numeric-cell-right': isGrid && isNumericField && !isEditColumnMenu && !isForm && !isExpandedFormOpen, - 'h-[40px]': !props.editEnabled && isForm && !isSurveyForm && !isAttachment(column) && !props.virtual, + 'h-[40px]': isForm && !isSurveyForm && !isAttachment(column) && !props.virtual, 'nc-grid-numeric-cell-left': (isForm && isNumericField && isExpandedFormOpen) || isEditColumnMenu, }, ]" diff --git a/packages/nc-gui/components/smartsheet/Form.vue b/packages/nc-gui/components/smartsheet/Form.vue index b5188da758..0361929b0a 100644 --- a/packages/nc-gui/components/smartsheet/Form.vue +++ b/packages/nc-gui/components/smartsheet/Form.vue @@ -552,8 +552,8 @@ watch(view, (nextView) => { class="w-full !font-bold !text-4xl !border-0 !border-b-1 !border-dashed !rounded-none !border-gray-400" :style="{ 'borderRightWidth': '0px !important', - 'height': '54px', - 'min-height': '54px', + 'height': '70px', + 'max-height': '250px', 'resize': 'vertical', }" size="large" @@ -768,7 +768,7 @@ watch(view, (nextView) => { -
+
{{ element.description }}