diff --git a/packages/nc-gui/components/smartsheet/Grid.vue b/packages/nc-gui/components/smartsheet/Grid.vue
index 265bd770f1..69f6a49dc7 100644
--- a/packages/nc-gui/components/smartsheet/Grid.vue
+++ b/packages/nc-gui/components/smartsheet/Grid.vue
@@ -151,8 +151,8 @@ const getContainerScrollForElement = (
relativePos.right + (offset?.right || 0) > 0
? container.scrollLeft + relativePos.right + (offset?.right || 0)
: relativePos.left - (offset?.left || 0) < 0
- ? container.scrollLeft + relativePos.left - (offset?.left || 0)
- : container.scrollLeft
+ ? container.scrollLeft + relativePos.left - (offset?.left || 0)
+ : container.scrollLeft
/*
* If the element is below the container, scroll down (positive)
@@ -162,8 +162,8 @@ const getContainerScrollForElement = (
relativePos.bottom + (offset?.bottom || 0) > 0
? container.scrollTop + relativePos.bottom + (offset?.bottom || 0)
: relativePos.top - (offset?.top || 0) < 0
- ? container.scrollTop + relativePos.top - (offset?.top || 0)
- : container.scrollTop
+ ? container.scrollTop + relativePos.top - (offset?.top || 0)
+ : container.scrollTop
return scroll
}
@@ -273,7 +273,7 @@ const { selectCell, startSelectRange, endSelectRange, clearSelectedRange, copyVa
},
async (ctx: { row: number; col?: number; updatedColumnTitle?: string }) => {
const rowObj = data.value[ctx.row]
- const columnObj = (ctx.col !== null && ctx.col !== undefined) ? fields.value[ctx.col] : null
+ const columnObj = ctx.col !== null && ctx.col !== undefined ? fields.value[ctx.col] : null
if (!ctx.updatedColumnTitle && isVirtualCol(columnObj)) {
return
@@ -644,105 +644,104 @@ const closeAddColumnDropdown = () => {
@contextmenu="showContextMenu"
>
-
-
-
+
+
+
+
+
-
-
+
+
-
+
+
+
-
-