diff --git a/packages/nc-gui/components/smartsheet/Cell.vue b/packages/nc-gui/components/smartsheet/Cell.vue index 811af690e7..6eec5d67c0 100644 --- a/packages/nc-gui/components/smartsheet/Cell.vue +++ b/packages/nc-gui/components/smartsheet/Cell.vue @@ -8,6 +8,7 @@ import { IsFormInj, IsLockedInj, IsPublicInj, + IsSurveyFormInj, ReadonlyInj, computed, inject, @@ -84,6 +85,8 @@ const isPublic = inject(IsPublicInj, ref(false)) const isLocked = inject(IsLockedInj, ref(false)) +const isSurveyForm = inject(IsSurveyFormInj, ref(false)) + const { currentRow } = useSmartsheetRowStoreOrThrow() const { sqlUis } = storeToRefs(useProject()) @@ -158,7 +161,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 }, + { 'h-[40px]': !props.editEnabled && isForm && !isSurveyForm }, ]" @keydown.enter.exact="syncAndNavigate(NavigateDir.NEXT, $event)" @keydown.shift.enter.exact="syncAndNavigate(NavigateDir.PREV, $event)"