Skip to content

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

fix(nc-gui): splitpanel border color issue

Ramesh Mane5fb72942389a
diff --git a/packages/nc-gui/components/dashboard/MiniSidebar/CreateNewActionMenu.vue b/packages/nc-gui/components/dashboard/MiniSidebar/CreateNewActionMenu.vue
index 9066966243..5d0259b3a8 100644
--- a/packages/nc-gui/components/dashboard/MiniSidebar/CreateNewActionMenu.vue
+++ b/packages/nc-gui/components/dashboard/MiniSidebar/CreateNewActionMenu.vue
@@ -140,7 +140,7 @@ const hasDashboardCreateAccess = computed(() => {
<div
class="border-1 w-7 h-7 flex-none rounded-full overflow-hidden transition-all duration-300 flex items-center justify-center bg-nc-bg-gray-medium"
:class="{
- 'border-nc-gray-medium': !isVisibleCreateNew,
+ 'border-nc-border-gray-dark': !isVisibleCreateNew,
'active border-primary shadow-selected': isVisibleCreateNew,
}"
>
diff --git a/packages/nc-gui/components/dashboard/View.vue b/packages/nc-gui/components/dashboard/View.vue
index 7c52835973..122f5a9d6c 100644
--- a/packages/nc-gui/components/dashboard/View.vue
+++ b/packages/nc-gui/components/dashboard/View.vue
@@ -329,18 +329,18 @@ const isMiniSidebarVisible = computed(() => {
@apply !w-0 relative overflow-visible;
}
.splitpanes__splitter:before {
- @apply bg-gray-200 w-0.25 absolute left-0 top-0 h-full z-40;
+ @apply bg-nc-bg-gray-medium w-0.25 absolute left-0 top-0 h-full z-40;
content: '';
}
.splitpanes__splitter:hover:before {
- @apply bg-scrollbar;
+ @apply bg-nc-border-gray-medium;
width: 3px !important;
left: 0px;
}
.splitpanes--dragging .splitpanes__splitter:before {
- @apply bg-scrollbar;
+ @apply bg-nc-border-gray-medium;
width: 3px !important;
left: 0px;
}
diff --git a/packages/nc-gui/components/project/View.vue b/packages/nc-gui/components/project/View.vue
index 644a50f9f3..e7218c1cd1 100644
--- a/packages/nc-gui/components/project/View.vue
+++ b/packages/nc-gui/components/project/View.vue
@@ -175,14 +175,14 @@ onMounted(() => {
<div class="h-full nc-base-view">
<div
v-if="!isAdminPanel"
- class="flex flex-row px-2 py-2 gap-3 justify-between w-full border-b-1 border-gray-200"
+ class="flex flex-row px-2 py-2 gap-3 justify-between w-full border-b-1 border-nc-border-gray-medium"
:class="{ 'nc-table-toolbar-mobile': isMobileMode, 'h-[var(--topbar-height)]': !isMobileMode }"
>
<div class="flex-1 flex flex-row items-center gap-x-3">
<GeneralOpenLeftSidebarBtn />
<div v-if="!showEmptySkeleton" class="flex flex-row items-center h-full gap-x-2 px-2">
<GeneralProjectIcon :color="parseProp(currentBase?.meta).iconColor" :type="currentBase?.type" />
- <NcTooltip class="flex font-bold text-sm capitalize truncate max-w-150 text-gray-800" show-on-truncate-only>
+ <NcTooltip class="flex font-bold text-sm capitalize truncate max-w-150 text-nc-content-gray" show-on-truncate-only>
<template #title> {{ currentBase?.title }}</template>
<span class="truncate">
{{ currentBase?.title }}
@@ -239,7 +239,7 @@ onMounted(() => {
class="tab-info"
:class="{
'bg-primary-selected': projectPageTab === 'collaborator',
- 'bg-gray-50': projectPageTab !== 'collaborator',
+ 'bg-nc-bg-gray-extralight': projectPageTab !== 'collaborator',
}"
>
{{ userCount }}
@@ -270,7 +270,7 @@ onMounted(() => {
class="tab-info"
:class="{
'bg-primary-selected': projectPageTab === 'data-source',
- 'bg-gray-50': projectPageTab !== 'data-source',
+ 'bg-nc-bg-gray-extralight': projectPageTab !== 'data-source',
}"
>
{{ base.sources.length }}
diff --git a/packages/nc-gui/components/smartsheet/form/Layout.vue b/packages/nc-gui/components/smartsheet/form/Layout.vue
index 4f521543b9..fada8324c1 100644
--- a/packages/nc-gui/components/smartsheet/form/Layout.vue
+++ b/packages/nc-gui/components/smartsheet/form/Layout.vue
@@ -59,18 +59,18 @@ const normalizeSidebarWidth = computed(() => {
@apply !w-0 relative overflow-visible;
}
.splitpanes__splitter:before {
- @apply bg-gray-200 w-0.25 absolute left-0 top-0 h-full z-40;
+ @apply bg-nc-bg-gray-medium w-0.25 absolute left-0 top-0 h-full z-40;
content: '';
}
.splitpanes__splitter:hover:before {
- @apply bg-scrollbar;
+ @apply bg-nc-border-gray-medium;
width: 3px !important;
left: 0px;
}
.splitpanes--dragging .splitpanes__splitter:before {
- @apply bg-scrollbar;
+ @apply bg-nc-border-gray-medium;
width: 3px !important;
left: 0px;
}
diff --git a/packages/nc-gui/components/tabs/Smartsheet.vue b/packages/nc-gui/components/tabs/Smartsheet.vue
index fb89321543..e18567031e 100644
--- a/packages/nc-gui/components/tabs/Smartsheet.vue
+++ b/packages/nc-gui/components/tabs/Smartsheet.vue
@@ -237,7 +237,7 @@ const onReady = () => {
>
<Transition name="layout" mode="out-in">
<div v-if="openedViewsTab === 'view'" class="flex flex-1 min-h-0 w-3/4">
- <div class="h-full flex-1 min-w-0 min-h-0 bg-white">
+ <div class="h-full flex-1 min-w-0 min-h-0 bg-nc-bg-default">
<SmartsheetGrid v-if="isGrid || !meta || !activeView" ref="grid" />
<template v-if="activeView && meta">
@@ -283,18 +283,18 @@ const onReady = () => {
@apply !w-0 relative overflow-visible z-40 -ml-1px;
}
.splitpanes__splitter:before {
- @apply bg-gray-200 absolute left-0 top-[12px] h-[calc(100%_-_24px)] rounded-full z-40;
+ @apply bg-nc-bg-gray-medium absolute left-0 top-[12px] h-[calc(100%_-_24px)] rounded-full z-40;
content: '';
}
.splitpanes__splitter:hover:before {
- @apply bg-scrollbar;
+ @apply bg-nc-border-gray-medium;
width: 3px !important;
left: 0px;
}
.splitpanes--dragging .splitpanes__splitter:before {
- @apply bg-scrollbar;
+ @apply bg-nc-border-gray-medium;
width: 3px !important;
left: 0px;
}