From e264277996ac930fdcf16703e7844c89f191341d Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 28 Apr 2021 14:23:37 +0100 Subject: [PATCH] Hide empty spans inside routify routes to fix broken layouts --- .../src/pages/builder/[application]/data/_layout.svelte | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/builder/src/pages/builder/[application]/data/_layout.svelte b/packages/builder/src/pages/builder/[application]/data/_layout.svelte index 028fb3bbdf..5bc50b9afd 100644 --- a/packages/builder/src/pages/builder/[application]/data/_layout.svelte +++ b/packages/builder/src/pages/builder/[application]/data/_layout.svelte @@ -20,7 +20,7 @@ let selected = $isActive("./datasource") ? "External" : "Internal" function selectFirstTableOrSource({ detail }) { - const { key } = tabs.find((t) => t.title === detail) + const { key } = tabs.find(t => t.title === detail) if (key === "datasource") { $goto("./datasource") } else { @@ -54,8 +54,7 @@
+ data-cy={`new-${selected === 'External' ? 'datasource' : 'tabel'}`}>
@@ -82,6 +81,10 @@ align-items: stretch; gap: var(--spacing-l); } + .content :global(> span) { + display: contents; + } + .tab-content-padding { padding: 0 var(--spacing-xl); }