From fdabe0ed2fdf944214090b03664f3c570f59cf6a Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 21 Mar 2023 00:50:48 +0800 Subject: [PATCH] refactor(nc-gui): revise style in cell for form --- packages/nc-gui/components/smartsheet/Cell.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui/components/smartsheet/Cell.vue b/packages/nc-gui/components/smartsheet/Cell.vue index 1a76886aa6..c28fb5ba7b 100644 --- a/packages/nc-gui/components/smartsheet/Cell.vue +++ b/packages/nc-gui/components/smartsheet/Cell.vue @@ -66,7 +66,7 @@ const column = toRef(props, 'column') const active = toRef(props, 'active', false) -const readOnly = toRef(props, 'readOnly', undefined) +const readOnly = toRef(props, 'readOnly', false) provide(ColumnInj, column) @@ -158,6 +158,7 @@ const onContextmenu = (e: MouseEvent) => { `nc-cell-${(column?.uidt || 'default').toLowerCase()}`, { 'text-blue-600': isPrimary(column) && !props.virtual && !isForm }, { 'nc-grid-numeric-cell': isGrid && !isForm && isNumericField }, + { 'h-[40px]': !props.editEnabled && isForm } ]" @keydown.enter.exact="syncAndNavigate(NavigateDir.NEXT, $event)" @keydown.shift.enter.exact="syncAndNavigate(NavigateDir.PREV, $event)"