From e5eb471499ade9d7b696bb3d7c11ae26c567d628 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Fri, 12 Jul 2024 18:22:02 +0000 Subject: [PATCH] fix(nc-gui): use grayscale base icon in relation settings field modal --- .../smartsheet/column/EditOrAdd.vue | 2 +- .../smartsheet/column/LinkAdvancedOptions.vue | 34 ++++++++++++++----- 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue b/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue index 8f4334583b..06237ac70b 100644 --- a/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue +++ b/packages/nc-gui/components/smartsheet/column/EditOrAdd.vue @@ -363,7 +363,7 @@ const isFullUpdateAllowed = computed(() => { 'min-w-[500px]': formState.uidt === UITypes.LinkToAnotherRecord || formState.uidt === UITypes.Links, 'overflow-visible': formState.uidt === UITypes.Formula, '!w-[600px]': formState.uidt === UITypes.LinkToAnotherRecord || formState.uidt === UITypes.Links, - 'min-w-[400px] !w-full': isLinksOrLTAR(formState.uidt), + 'min-w-[422px] !w-full': isLinksOrLTAR(formState.uidt), 'shadow-lg shadow-gray-300 border-1 border-gray-200 rounded-xl p-5': !embedMode, }" @keydown="handleEscape" diff --git a/packages/nc-gui/components/smartsheet/column/LinkAdvancedOptions.vue b/packages/nc-gui/components/smartsheet/column/LinkAdvancedOptions.vue index c61770f447..a82afcc925 100644 --- a/packages/nc-gui/components/smartsheet/column/LinkAdvancedOptions.vue +++ b/packages/nc-gui/components/smartsheet/column/LinkAdvancedOptions.vue @@ -159,6 +159,13 @@ const onBaseChange = async (baseId, isJunctionBase: boolean = false) => { } } +const getBaseIconColor = (base, selectedBaseId) => { + if (base.id === selectedBaseId) { + return undefined + } else { + return parseProp(base.meta).iconColor + } +} watch(pkColumn, () => { if (pkColumn.value?.id && !vModel.value.custom?.column_id) { vModel.value.custom = { @@ -188,8 +195,7 @@ watch(pkColumn, () => {
- - +
@@ -218,7 +224,7 @@ watch(pkColumn, () => {
- +
@@ -279,7 +285,7 @@ watch(pkColumn, () => {
- +
@@ -308,7 +314,7 @@ watch(pkColumn, () => {
- +
@@ -335,7 +341,7 @@ watch(pkColumn, () => { dropdown-class-name="nc-dropdown-ltar-source-junction-column" @change="onDataTypeChange" > - +
{ dropdown-class-name="nc-dropdown-ltar-child-junction-column" @change="onDataTypeChange" > - +
{
- +
@@ -439,7 +445,7 @@ watch(pkColumn, () => {
- +
@@ -524,6 +530,16 @@ watch(pkColumn, () => { @apply mr-2; } + .nc-project-icon { + @apply !grayscale; + filter: grayscale(100%) brightness(115%) !important; + } + + .nc-table-icon { + @apply text-gray-500; + + } + .nc-relation-settings-table-connector-point { @apply absolute top-[50%] rounded-full w-2 h-2; transform: translateY(-50%);