From 8714e8684bd330b904d409695319a70e1559fc03 Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Thu, 14 Sep 2023 20:07:58 +0530 Subject: [PATCH] fix: remove v-bind in style --- packages/nc-gui/components/smartsheet/Cell.vue | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) 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(() => {