From f44400b9a1d2e48a4be71d972c49707e7f7d19e0 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Thu, 11 Aug 2022 19:57:49 +0530 Subject: [PATCH 1/3] refactor(gui-v2): ui updates Signed-off-by: Pranav C --- packages/nc-gui-v2/assets/style-v2.scss | 2 +- packages/nc-gui-v2/components.d.ts | 2 + .../components/dashboard/TreeView.vue | 19 +++------ .../components/smartsheet-header/Cell.vue | 2 +- .../smartsheet-header/VirtualCell.vue | 2 +- .../smartsheet-toolbar/ColumnFilter.vue | 39 +++++++------------ .../smartsheet-toolbar/ColumnFilterMenu.vue | 6 +-- .../FieldListAutoCompleteDropdown.vue | 4 +- .../smartsheet-toolbar/FieldsMenu.vue | 10 ++--- .../smartsheet-toolbar/MoreActions.vue | 4 +- .../smartsheet-toolbar/ShareView.vue | 4 +- .../smartsheet-toolbar/SortListMenu.vue | 19 ++++----- .../nc-gui-v2/components/smartsheet/Grid.vue | 8 ++-- .../components/smartsheet/Toolbar.vue | 4 +- .../smartsheet/sidebar/MenuBottom.vue | 24 +++++------- .../components/smartsheet/sidebar/MenuTop.vue | 6 +-- packages/nc-gui-v2/nuxt.config.ts | 2 +- .../pages/nc/[projectId]/index/index.vue | 36 +++++++++++++++-- packages/nc-gui-v2/utils/colorsUtils.ts | 2 +- 19 files changed, 100 insertions(+), 95 deletions(-) diff --git a/packages/nc-gui-v2/assets/style-v2.scss b/packages/nc-gui-v2/assets/style-v2.scss index 5c55ae5c33..84226d3f47 100644 --- a/packages/nc-gui-v2/assets/style-v2.scss +++ b/packages/nc-gui-v2/assets/style-v2.scss @@ -102,7 +102,7 @@ html { // for highlighting toolbar menu item .nc-active-btn > .ant-btn{ - @apply bg-primary/20; + @apply bg-primary/20 hover:(bg-primary/20); } .ant-modal-wrap { diff --git a/packages/nc-gui-v2/components.d.ts b/packages/nc-gui-v2/components.d.ts index 7fd5ee4556..30099a9572 100644 --- a/packages/nc-gui-v2/components.d.ts +++ b/packages/nc-gui-v2/components.d.ts @@ -84,6 +84,7 @@ declare module '@vue/runtime-core' { MdiChat: typeof import('~icons/mdi/chat')['default'] MdiCheck: typeof import('~icons/mdi/check')['default'] MdiChevronDown: typeof import('~icons/mdi/chevron-down')['default'] + MdiClose: typeof import('~icons/mdi/close')['default'] MdiCloseCircle: typeof import('~icons/mdi/close-circle')['default'] MdiCloseThick: typeof import('~icons/mdi/close-thick')['default'] MdiContentCopy: typeof import('~icons/mdi/content-copy')['default'] @@ -95,6 +96,7 @@ declare module '@vue/runtime-core' { MdiDrag: typeof import('~icons/mdi/drag')['default'] MdiDragVertical: typeof import('~icons/mdi/drag-vertical')['default'] MdiEmail: typeof import('~icons/mdi/email')['default'] + MdiExitToApp: typeof import('~icons/mdi/exit-to-app')['default'] MdiEyeOffOutline: typeof import('~icons/mdi/eye-off-outline')['default'] MdiFlag: typeof import('~icons/mdi/flag')['default'] MdiFolder: typeof import('~icons/mdi/folder')['default'] diff --git a/packages/nc-gui-v2/components/dashboard/TreeView.vue b/packages/nc-gui-v2/components/dashboard/TreeView.vue index ddd290b453..8030ce6b9f 100644 --- a/packages/nc-gui-v2/components/dashboard/TreeView.vue +++ b/packages/nc-gui-v2/components/dashboard/TreeView.vue @@ -4,7 +4,6 @@ import Sortable from 'sortablejs' import { useNuxtApp, useRoute } from '#app' import { computed, useProject, useTable, useTabs, watchEffect } from '#imports' import { TabType } from '~/composables' -import MdiTable from '~icons/mdi/table' import MdiView from '~icons/mdi/eye-circle-outline' import MdiTableLarge from '~icons/mdi/table-large' import MdiMenuDown from '~icons/mdi/chevron-down' @@ -153,9 +152,7 @@ const activeTable = computed(() => { @click="showTableList = !showTableList" @contextmenu="setMenuContext('main')" > - - - + {{ $t('objects.tables') }} @@ -196,14 +193,10 @@ const activeTable = computed(() => { @click.stop.prevent /> - + -
{{ table.title }}
+
{{ table.title }}
@@ -298,17 +291,17 @@ const activeTable = computed(() => { } .nc-tree-item svg { - @apply text-gray-500; + @apply text-primary/60; } .nc-tree-item.active { - @apply !text-primary after:(!opacity-5); + @apply !text-primary font-weight-medium after:(!opacity-20); svg { @apply !text-primary; } } .nc-tree-item:hover { - @apply !text-grey after:(!opacity-2); + @apply !text-grey after:(!opacity-5); } diff --git a/packages/nc-gui-v2/components/smartsheet-header/Cell.vue b/packages/nc-gui-v2/components/smartsheet-header/Cell.vue index 8585a49221..e8fab798cc 100644 --- a/packages/nc-gui-v2/components/smartsheet-header/Cell.vue +++ b/packages/nc-gui-v2/components/smartsheet-header/Cell.vue @@ -21,7 +21,7 @@ useProvideColumnCreateStore(meta as Ref, column)