From 34e1b0ab1a8174f18820b4053892e578cf7fd6cd Mon Sep 17 00:00:00 2001 From: Muhammed Mustafa Date: Mon, 25 Sep 2023 13:39:09 +0000 Subject: [PATCH] feat: Added windi css screen and removed a good portion of conditional class for mobile --- packages/nc-gui/assets/style.scss | 7 ++-- .../components/dashboard/Sidebar/Header.vue | 11 +---- .../dashboard/TreeView/ProjectNode.vue | 2 +- .../dashboard/TreeView/TableNode.vue | 2 +- .../dashboard/TreeView/ViewsNode.vue | 2 +- packages/nc-gui/components/nc/Button.vue | 42 ++++--------------- .../nc-gui/components/smartsheet/Topbar.vue | 2 +- packages/nc-gui/layouts/base.vue | 12 +----- packages/nc-gui/store/config.ts | 9 ++++ packages/nc-gui/windi.config.ts | 8 ++++ 10 files changed, 36 insertions(+), 61 deletions(-) diff --git a/packages/nc-gui/assets/style.scss b/packages/nc-gui/assets/style.scss index 85d3b8dd76..5527054091 100644 --- a/packages/nc-gui/assets/style.scss +++ b/packages/nc-gui/assets/style.scss @@ -48,9 +48,6 @@ main { @apply m-0 h-full w-full bg-white; } -.nc-app.mobile *:hover { - background-color:unset!important; -} .nc-input-md { @apply !rounded-lg !py-2 !px-3 mb-1; @@ -600,6 +597,10 @@ input[type='number'] { @apply !block !py-1.5; } +.nc-sidebar-node { + @apply !sm:h-8.9; +} + .nc-button.ant-btn.nc-sidebar-node-btn { @apply opacity-0 group-hover:(opacity-100) text-gray-600 hover:(bg-gray-400 bg-opacity-20 text-gray-900) duration-100; } diff --git a/packages/nc-gui/components/dashboard/Sidebar/Header.vue b/packages/nc-gui/components/dashboard/Sidebar/Header.vue index c16952cf2b..a7ca417c80 100644 --- a/packages/nc-gui/components/dashboard/Sidebar/Header.vue +++ b/packages/nc-gui/components/dashboard/Sidebar/Header.vue @@ -10,11 +10,7 @@ const { isMobileMode } = useGlobal()