Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(nc-gui): some review changes

Ramesh Mane177bea73436e
diff --git a/packages/nc-gui/components/dashboard/MiniSidebar.vue b/packages/nc-gui/components/dashboard/MiniSidebar.vue
index ce053d9d58..68cb784f1d 100644
--- a/packages/nc-gui/components/dashboard/MiniSidebar.vue
+++ b/packages/nc-gui/components/dashboard/MiniSidebar.vue
@@ -291,7 +291,7 @@ useEventListener(document, 'keydown', async (e: KeyboardEvent) => {
<style lang="scss">
.nc-mini-sidebar {
- --mini-sidebar-bg-color: var(--color-gray-100);
+ --mini-sidebar-bg-color: var(--nc-bg-gray-light);
@apply w-[var(--mini-sidebar-width)] flex-none bg-[var(--mini-sidebar-bg-color)] flex flex-col justify-between items-center border-r-1 border-nc-border-gray-medium z-502 nc-scrollbar-thin relative;
diff --git a/packages/nc-gui/components/project/Action/Item.vue b/packages/nc-gui/components/project/Action/Item.vue
index 78f81552cd..94a291c343 100644
--- a/packages/nc-gui/components/project/Action/Item.vue
+++ b/packages/nc-gui/components/project/Action/Item.vue
@@ -37,15 +37,15 @@ defineProps<{
<style lang="scss" scoped>
.nc-base-view-all-table-btn {
- @apply flex-none flex flex-col gap-y-3 p-4 bg-nc-bg-gray-extralight rounded-xl border-1 border-nc-border-gray-light min-w-[230px] max-w-[245px] text-nc-content-gray transition-all duration-300;
+ @apply flex-none flex flex-col gap-y-3 p-4 bg-nc-bg-gray-extralight rounded-xl border-1 border-nc-border-gray-light min-w-[230px] max-w-[245px] text-nc-content-gray transition-all duration-300;
&.disabled {
- @apply bg-nc-bg-gray-extralight text-[var(--color-gray-400)] hover:(bg-nc-bg-gray-extralight text-gray-400) cursor-not-allowed;
+ @apply bg-nc-bg-gray-extralight text-nc-content-gray-disabled hover:bg-nc-bg-gray-extralight cursor-not-allowed;
}
&:hover:not(.loading) {
@apply bg-nc-bg-gray-light border-nc-border-gray-medium;
- box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.08);
+ box-shadow: 0px 0px 4px 0px rgba(255, 255, 255, 0.08);
}
.icon-wrapper {
diff --git a/packages/nc-gui/components/smartsheet/expanded-form/ViewModeSelector.vue b/packages/nc-gui/components/smartsheet/expanded-form/ViewModeSelector.vue
index b371e4a1a7..3c47805703 100644
--- a/packages/nc-gui/components/smartsheet/expanded-form/ViewModeSelector.vue
+++ b/packages/nc-gui/components/smartsheet/expanded-form/ViewModeSelector.vue
@@ -88,7 +88,7 @@ onMounted(() => {
<style lang="scss" scoped>
.tab {
- @apply flex flex-row items-center h-full justify-center px-2 border-1 border-t-0 border-b-0 border-nc-border-gray-medium text-nc-content-gray-subtle2 hover:text-nc-content-gray-extreme cursor-pointer transition-all duration-300 select-none;
+ @apply flex flex-row items-center h-full justify-center px-2 border-1 border-t-0 border-b-0 border-nc-border-gray-medium text-nc-content-gray-subtle2 cursor-pointer transition-all duration-300 select-none;
&.first-tab {
@apply border-0;
@@ -104,6 +104,16 @@ onMounted(() => {
}
}
}
+
+ &.active {
+ @apply bg-nc-bg-brand text-nc-content-brand-disabled;
+
+ box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.06), 0px 5px 3px -2px rgba(0, 0, 0, 0.02);
+ }
+
+ &:not(.active) {
+ @apply hover:text-nc-content-gray-extreme;
+ }
}
.tab-icon {
@@ -117,10 +127,4 @@ onMounted(() => {
display: inline;
line-height: 0.95;
}
-
-.active {
- @apply bg-nc-bg-brand text-nc-content-brand-disabled hover:text-nc-content-brand-disabled;
-
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.06), 0px 5px 3px -2px rgba(0, 0, 0, 0.02);
-}
</style>