diff --git a/packages/nc-gui/components/smartsheet/Cell.vue b/packages/nc-gui/components/smartsheet/Cell.vue index a55c6eb8ae..013b552d77 100644 --- a/packages/nc-gui/components/smartsheet/Cell.vue +++ b/packages/nc-gui/components/smartsheet/Cell.vue @@ -182,9 +182,6 @@ function initIntersectionObserver() { }) } -const numberInputAlignment = computed(() => { - return isEditColumnMenu.value ? 'left' : 'right' -}) // observe the cell when it is mounted onMounted(() => { initIntersectionObserver() @@ -204,10 +201,11 @@ onUnmounted(() => { :class="[ `nc-cell-${(column?.uidt || 'default').toLowerCase()}`, { 'text-brand-500': isPrimary(column) && !props.virtual && !isForm }, - { 'nc-grid-numeric-cell': isGrid && !isForm && isNumericField && !isExpandedFormOpen }, + { 'nc-grid-numeric-cell-right': isGrid && isNumericField && !isEditColumnMenu && !isForm && !isExpandedFormOpen }, { 'h-[40px]': !props.editEnabled && isForm && !isSurveyForm && !isAttachment(column) && !props.virtual, }, + { 'nc-grid-numeric-cell-left': (isForm && isNumericField && isExpandedFormOpen) || isEditColumnMenu }, ]" @keydown.enter.exact="navigate(NavigateDir.NEXT, $event)" @keydown.shift.enter.exact="navigate(NavigateDir.PREV, $event)" @@ -263,10 +261,16 @@ onUnmounted(() => {