From 990d6ca1db83311bc42388b561b15a76e4990ee4 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 13 Aug 2022 23:07:54 +0530 Subject: [PATCH 1/9] fix(gui-v2): fields menu showall/hideall bug Signed-off-by: Pranav C --- .../nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue | 4 ++-- packages/nc-gui-v2/composables/useViewColumns.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue b/packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue index 076303d07a..55cc86b8e9 100644 --- a/packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue +++ b/packages/nc-gui-v2/components/smartsheet-toolbar/FieldsMenu.vue @@ -107,11 +107,11 @@ const onMove = (event: { moved: { newIndex: number } }) => {
- + {{ $t('general.showAll') }} - + {{ $t('general.hideAll') }} diff --git a/packages/nc-gui-v2/composables/useViewColumns.ts b/packages/nc-gui-v2/composables/useViewColumns.ts index 9558a15985..c0fc06149e 100644 --- a/packages/nc-gui-v2/composables/useViewColumns.ts +++ b/packages/nc-gui-v2/composables/useViewColumns.ts @@ -41,7 +41,6 @@ export function useViewColumns( [curr.fk_column_id]: curr, } }, {}) - fields.value = meta.value?.columns ?.map((column) => { const currentColumnField = fieldById[column.id!] || {} From 6809c022001f61f7d3717eb5644695d2376e741f Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 13 Aug 2022 23:13:23 +0530 Subject: [PATCH 2/9] refactor(gui-v2): inactive tab text color Signed-off-by: Pranav C --- .../nc-gui-v2/pages/[projectType]/[projectId]/index/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index.vue b/packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index.vue index 309a188b47..f384ad639c 100644 --- a/packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index.vue +++ b/packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index.vue @@ -174,7 +174,7 @@ const icon = (tab: TabItem) => { @apply font-weight-medium; } & > .ant-tabs-tab:not(.ant-tabs-tab-active) { - @apply bg-gray-100; + @apply bg-gray-100 text-gray-500; } } } From 1bb01fbd56b7b9fe157c4798586845e9ee2ba89e Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 13 Aug 2022 23:15:18 +0530 Subject: [PATCH 3/9] refactor(gui-v2): remove add table and menu down icons Signed-off-by: Pranav C --- packages/nc-gui-v2/components/dashboard/TreeView.vue | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/packages/nc-gui-v2/components/dashboard/TreeView.vue b/packages/nc-gui-v2/components/dashboard/TreeView.vue index 551c1d4529..931d18b861 100644 --- a/packages/nc-gui-v2/components/dashboard/TreeView.vue +++ b/packages/nc-gui-v2/components/dashboard/TreeView.vue @@ -165,17 +165,6 @@ const activeTable = computed(() => { - - -
From 1693aa0b46621fd0332f873bcc0aa25b6cf9b3e6 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 13 Aug 2022 23:20:17 +0530 Subject: [PATCH 4/9] refactor(gui-v2): align pagination component at bottom Signed-off-by: Pranav C --- .../nc-gui-v2/pages/[projectType]/[projectId]/index/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index.vue b/packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index.vue index f384ad639c..f659ea0410 100644 --- a/packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index.vue +++ b/packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index.vue @@ -144,7 +144,7 @@ const icon = (tab: TabItem) => {
-
+
From afb097604b39c0d91760a8655c557a07d3adb0bd Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 13 Aug 2022 23:24:19 +0530 Subject: [PATCH 5/9] refactor(gui-v2): pagination inactive items color Signed-off-by: Pranav C --- packages/nc-gui-v2/components/smartsheet/Pagination.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/components/smartsheet/Pagination.vue b/packages/nc-gui-v2/components/smartsheet/Pagination.vue index 3f20bf6b71..4dc0540034 100644 --- a/packages/nc-gui-v2/components/smartsheet/Pagination.vue +++ b/packages/nc-gui-v2/components/smartsheet/Pagination.vue @@ -19,7 +19,7 @@ const page = computed({ - ) => { } .nc-grid-header { + position: sticky; + top:-1px; + + @apply z-1; + &:hover { .nc-no-label { @apply hidden; From b8ae47f7ae16a1039a595361ebe51645f979f6b2 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Sat, 13 Aug 2022 23:48:00 +0530 Subject: [PATCH 7/9] feat(gui-v2): row number cell correction Signed-off-by: Pranav C --- .../nc-gui-v2/components/smartsheet/Grid.vue | 52 ++++++++++--------- .../components/smartsheet/Pagination.vue | 6 ++- 2 files changed, 31 insertions(+), 27 deletions(-) diff --git a/packages/nc-gui-v2/components/smartsheet/Grid.vue b/packages/nc-gui-v2/components/smartsheet/Grid.vue index 9391040ecf..57be5f45dd 100644 --- a/packages/nc-gui-v2/components/smartsheet/Grid.vue +++ b/packages/nc-gui-v2/components/smartsheet/Grid.vue @@ -300,7 +300,7 @@ const expandForm = (row: Row, state: Record) => { -
+
#
) => {