diff --git a/packages/builder/src/components/backend/DataTable/buttons/grid/ColumnsSettingContent.svelte b/packages/builder/src/components/backend/DataTable/buttons/grid/ColumnsSettingContent.svelte index 9e9449976b..85af8596a0 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/grid/ColumnsSettingContent.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/grid/ColumnsSettingContent.svelte @@ -210,16 +210,18 @@ anchor={relationshipPanelAnchor} align="left" > - {#if relationshipPanelColumns.length} -
- {relationshipFieldName} columns -
- {/if} - +
+ {#if relationshipPanelColumns.length} +
+ {relationshipFieldName} columns +
+ {/if} + +
{/if} @@ -230,11 +232,13 @@ } .content { - padding: 12px 12px; display: flex; flex-direction: column; gap: 12px; } + .nested { + padding: 12px; + } .columns { display: grid; align-items: center; @@ -262,6 +266,6 @@ } .relationship-header { color: var(--spectrum-global-color-gray-600); - padding: 12px 12px 0 12px; + margin-bottom: 12px; } diff --git a/packages/builder/src/components/backend/DataTable/buttons/grid/GridColumnsSettingButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/grid/GridColumnsSettingButton.svelte index 83327a48c4..0e47fe1bc0 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/grid/GridColumnsSettingButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/grid/GridColumnsSettingButton.svelte @@ -12,11 +12,11 @@ import ColumnsSettingContent from "./ColumnsSettingContent.svelte" import { isEnabled } from "helpers/featureFlags" import { FeatureFlag } from "@budibase/types" + import DetailPopover from "components/common/DetailPopover.svelte" const { tableColumns, datasource } = getContext("grid") - let open = false - let anchor + let popover $: anyRestricted = $tableColumns.filter( col => !col.visible || col.readonly @@ -32,24 +32,23 @@ : [FieldPermissions.WRITABLE, FieldPermissions.HIDDEN] -
- (open = !open)} - selected={open || anyRestricted} - disabled={!$tableColumns.length} - accentColor="#674D00" - > - {text} - -
- - + + + + {text} + + - +