From 2c56024f5665c39ccb811e3cc8b3346789de5553 Mon Sep 17 00:00:00 2001 From: musharaf-nocodb Date: Thu, 7 Dec 2023 12:13:56 +0530 Subject: [PATCH] fix : fixed select-item padding --- packages/nc-gui/assets/style.scss | 13 ++++++------- packages/nc-gui/components/nc/Select.vue | 2 +- .../components/smartsheet/toolbar/RowHeight.vue | 14 +++++++------- .../components/smartsheet/toolbar/SearchData.vue | 7 ------- 4 files changed, 14 insertions(+), 22 deletions(-) diff --git a/packages/nc-gui/assets/style.scss b/packages/nc-gui/assets/style.scss index d7f2807fee..70cc3a4e1a 100644 --- a/packages/nc-gui/assets/style.scss +++ b/packages/nc-gui/assets/style.scss @@ -222,7 +222,7 @@ a { } // select dropdown border style .ant-select-dropdown { - @apply border-1 border-gray-200 + @apply border-1 border-gray-200; } // menu item styling @@ -425,9 +425,9 @@ a { .ant-dropdown-menu-submenu { @apply !py-0; - - &.ant-dropdown-menu-submenu-popup{ - @apply border-1 border-gray-200 + + &.ant-dropdown-menu-submenu-popup { + @apply border-1 border-gray-200; } .ant-dropdown-menu, .ant-menu { @@ -504,15 +504,14 @@ a { .ant-select-item-option-active:not(.ant-select-item-option-disabled) { @apply bg-gray-300 bg-opacity-20; } -/* Add this to your global or component-specific stylesheet */ /* Hide the element with id selected-item-icon inside NcSelect */ .ant-select-selection-item #selected-item-icon { display: none; } -.ant-select-item-option-selected:not(.ant-select-item-option-disabled){ - @apply bg-transparent +.ant-select-item-option-selected:not(.ant-select-item-option-disabled) { + @apply bg-transparent; } .ant-select-selection-search-input:focus { diff --git a/packages/nc-gui/components/nc/Select.vue b/packages/nc-gui/components/nc/Select.vue index 06cf174602..63c95c83c5 100644 --- a/packages/nc-gui/components/nc/Select.vue +++ b/packages/nc-gui/components/nc/Select.vue @@ -62,7 +62,7 @@ const onChange = (value: string) => { diff --git a/packages/nc-gui/components/smartsheet/toolbar/SearchData.vue b/packages/nc-gui/components/smartsheet/toolbar/SearchData.vue index 439f4c2d54..70b51cc764 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/SearchData.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/SearchData.vue @@ -144,13 +144,6 @@ watch(columns, () => { -