From 9a39e84676155ba95957b568a12663c3e4839912 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Sat, 20 Jan 2024 11:37:16 +0000 Subject: [PATCH] fix(nc-gui): json & virtual fields spacing issue --- packages/nc-gui/components/cell/Json.vue | 11 ++++++++--- .../components/virtual-cell/BelongsTo.vue | 5 ++++- .../nc-gui/components/virtual-cell/Links.vue | 4 ++-- .../nc-gui/components/virtual-cell/Lookup.vue | 4 ++++ .../nc-gui/components/virtual-cell/Rollup.vue | 17 +++++++++++++++-- .../virtual-cell/barcode/Barcode.vue | 18 +++++++++++++++--- 6 files changed, 48 insertions(+), 11 deletions(-) diff --git a/packages/nc-gui/components/cell/Json.vue b/packages/nc-gui/components/cell/Json.vue index 26038f64d8..56c4fa96e3 100644 --- a/packages/nc-gui/components/cell/Json.vue +++ b/packages/nc-gui/components/cell/Json.vue @@ -13,6 +13,7 @@ import { useSelectedCellKeyupListener, useVModel, watch, + IsExpandedFormOpenInj, } from '#imports' interface Props { @@ -37,6 +38,8 @@ const isForm = inject(IsFormInj, ref(false)) const readOnly = inject(ReadonlyInj, ref(false)) +const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))! + const vModel = useVModel(props, 'modelValue', emits) const localValueState = ref() @@ -187,14 +190,16 @@ watch(isExpanded, () => { @update:model-value="localValue = $event" /> - + {{ error.toString() }} - {{ $t('general.null') }} + {{ + $t('general.null') + }} - + diff --git a/packages/nc-gui/components/virtual-cell/BelongsTo.vue b/packages/nc-gui/components/virtual-cell/BelongsTo.vue index 67cbaa0d80..779267fcd8 100644 --- a/packages/nc-gui/components/virtual-cell/BelongsTo.vue +++ b/packages/nc-gui/components/virtual-cell/BelongsTo.vue @@ -18,6 +18,7 @@ import { useRoles, useSelectedCellKeyupListener, useSmartsheetRowStoreOrThrow, + IsExpandedFormOpenInj, } from '#imports' const column = inject(ColumnInj)! @@ -36,6 +37,8 @@ const isForm = inject(IsFormInj, ref(false)) const isUnderLookup = inject(IsUnderLookupInj, ref(false)) +const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))! + const { isUIAllowed } = useRoles() const listItemsDlg = ref(false) @@ -95,7 +98,7 @@ watch([listItemsDlg], () => {