From f3de39b0c598c73f5985aa02cfe9725cbfb62416 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 19 Jun 2023 09:54:40 +0100 Subject: [PATCH] Update relationship cell height to be smart and maximise space --- .../src/components/grid/cells/RelationshipCell.svelte | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/frontend-core/src/components/grid/cells/RelationshipCell.svelte b/packages/frontend-core/src/components/grid/cells/RelationshipCell.svelte index 58aab8038b..ba84aaec75 100644 --- a/packages/frontend-core/src/components/grid/cells/RelationshipCell.svelte +++ b/packages/frontend-core/src/components/grid/cells/RelationshipCell.svelte @@ -141,7 +141,6 @@ const open = async () => { isOpen = true valuesHeight = container.getBoundingClientRect().height - console.log(valuesHeight) // Find the primary display for the related table if (!primaryDisplay) { @@ -345,7 +344,7 @@ min-height: var(--row-height); max-height: var(--row-height); overflow: hidden; - --max-relationship-height: 120px; + --max-relationship-height: 96px; } .wrapper.focused { position: absolute; @@ -455,8 +454,7 @@ left: 0; width: 100%; max-height: calc( - var(--max-cell-render-height) + var(--row-height) - - var(--max-relationship-height) + var(--max-cell-render-height) + var(--row-height) - var(--values-height) ); background: var(--grid-background-alt); border: var(--cell-border);