From 4a09e2787b5a5f523082a7d9f72e9f1d57cc2310 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 4 Aug 2022 00:39:26 +0530 Subject: [PATCH 1/7] chore(gui-v2): arrow/tab navigation correction Signed-off-by: Pranav C --- packages/nc-gui-v2/components/smartsheet/Grid.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/nc-gui-v2/components/smartsheet/Grid.vue b/packages/nc-gui-v2/components/smartsheet/Grid.vue index 59a9d45409..a2ccf0fb97 100644 --- a/packages/nc-gui-v2/components/smartsheet/Grid.vue +++ b/packages/nc-gui-v2/components/smartsheet/Grid.vue @@ -42,10 +42,7 @@ const addColumnDropdown = ref(false) const contextMenu = ref(false) const contextMenuTarget = ref(false) -const visibleColLength = $computed(() => { - const cols = fields.value - return cols.filter((col) => !isVirtualCol(col)).length -}) +const visibleColLength = $computed(() => fields.value?.length) const { loadData, From bf947e8012befab391f1ee11cee54c5ef89e0029 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 4 Aug 2022 01:04:36 +0530 Subject: [PATCH 2/7] fix(gui-v2): cell outline correction Signed-off-by: Pranav C --- .../nc-gui-v2/components/smartsheet/Grid.vue | 175 +++++++++--------- 1 file changed, 90 insertions(+), 85 deletions(-) diff --git a/packages/nc-gui-v2/components/smartsheet/Grid.vue b/packages/nc-gui-v2/components/smartsheet/Grid.vue index a2ccf0fb97..4e99b353f1 100644 --- a/packages/nc-gui-v2/components/smartsheet/Grid.vue +++ b/packages/nc-gui-v2/components/smartsheet/Grid.vue @@ -187,72 +187,74 @@ onKeyStroke(['Tab', 'Shift', 'Enter', 'Delete', 'ArrowDown', 'ArrowUp', 'ArrowLe - - + - - - - + + + + + + - - + - - + + + - - + - + + + + +
-
-
#
-
- - -
+
+
+
#
+
+ +
-
- - - - -
- -
- -
-
+ + + + +
+ +
+ +
+
-
-
{{ rowIndex + 1 }}
-
- - -
+
+
+
{{ rowIndex + 1 }}
+
+ + +
-
- + :data-col="columnObj.id" + @click="selectCell(rowIndex, colIndex)" + @dblclick="editEnabled = true" + @contextmenu="contextMenuTarget = { row: rowIndex, col: colIndex }" + > +
+ -
- -
- - +
+ +
+ + {{ $t('activity.addRow') }} -
- -
-