From d9948e68d34d7ba0f25d9aded06f8921d2aab66f Mon Sep 17 00:00:00 2001 From: Pranav C Date: Fri, 29 Jul 2022 11:57:58 +0530 Subject: [PATCH] feat(gui-v2): show badge if atleast one field hidden - replace vuetify badge Signed-off-by: Pranav C --- packages/nc-gui-v2/assets/style-v2.scss | 4 ++ .../smartsheet-toolbar/ColumnFilter.vue | 2 +- .../smartsheet-toolbar/FieldsMenu.vue | 52 +++++++++---------- .../nc-gui-v2/composables/useViewColumns.ts | 1 + .../nc-gui-v2/composables/useViewFilters.ts | 2 +- 5 files changed, 31 insertions(+), 30 deletions(-) diff --git a/packages/nc-gui-v2/assets/style-v2.scss b/packages/nc-gui-v2/assets/style-v2.scss index cfc809dfc2..28d87b8488 100644 --- a/packages/nc-gui-v2/assets/style-v2.scss +++ b/packages/nc-gui-v2/assets/style-v2.scss @@ -92,3 +92,7 @@ html { @apply z-1 text-xl p-1 text-gray-500; } } + +.nc-badge { + @apply relative after:(absolute top-[-2px] right-[-2px] w-[8px] h-[8px] rounded-full bg-primary content-['']); +} diff --git a/packages/nc-gui-v2/components/smartsheet-toolbar/ColumnFilter.vue b/packages/nc-gui-v2/components/smartsheet-toolbar/ColumnFilter.vue index 6756ba6aac..933e03a636 100644 --- a/packages/nc-gui-v2/components/smartsheet-toolbar/ColumnFilter.vue +++ b/packages/nc-gui-v2/components/smartsheet-toolbar/ColumnFilter.vue @@ -1,8 +1,8 @@