From 68e7994b34328d9c106754d03919005ce6005950 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Thu, 18 Aug 2022 00:02:19 +0200 Subject: [PATCH] refactor(gui-v2): use dropdown for project add btn --- packages/nc-gui-v2/components.d.ts | 1 + .../[projectType]/[projectId]/index/index.vue | 146 ++++++++++-------- 2 files changed, 81 insertions(+), 66 deletions(-) diff --git a/packages/nc-gui-v2/components.d.ts b/packages/nc-gui-v2/components.d.ts index 35b401d2e7..0f031d544b 100644 --- a/packages/nc-gui-v2/components.d.ts +++ b/packages/nc-gui-v2/components.d.ts @@ -22,6 +22,7 @@ declare module '@vue/runtime-core' { ADivider: typeof import('ant-design-vue/es')['Divider'] ADrawer: typeof import('ant-design-vue/es')['Drawer'] ADropdown: typeof import('ant-design-vue/es')['Dropdown'] + ADropdownButton: typeof import('ant-design-vue/es')['DropdownButton'] AEmpty: typeof import('ant-design-vue/es')['Empty'] AForm: typeof import('ant-design-vue/es')['Form'] AFormItem: typeof import('ant-design-vue/es')['FormItem'] 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 6a87f73002..7639df7928 100644 --- a/packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index.vue +++ b/packages/nc-gui-v2/pages/[projectType]/[projectId]/index/index.vue @@ -98,77 +98,85 @@ function openAirtableImportDialog() { @@ -205,6 +213,12 @@ function openAirtableImportDialog() { } } +.nc-add-project-menu { + :deep(.ant-dropdown-menu-item-group-list) { + @apply !mx-0; + } +} + :deep(.ant-menu-item-selected) { @apply text-inherit !bg-inherit; }