Hide empty spans inside routify routes to fix broken layouts
This commit is contained in:
parent
c8743af6f1
commit
7aa93e102e
|
@ -20,7 +20,7 @@
|
||||||
let selected = $isActive("./datasource") ? "External" : "Internal"
|
let selected = $isActive("./datasource") ? "External" : "Internal"
|
||||||
|
|
||||||
function selectFirstTableOrSource({ detail }) {
|
function selectFirstTableOrSource({ detail }) {
|
||||||
const { key } = tabs.find((t) => t.title === detail)
|
const { key } = tabs.find(t => t.title === detail)
|
||||||
if (key === "datasource") {
|
if (key === "datasource") {
|
||||||
$goto("./datasource")
|
$goto("./datasource")
|
||||||
} else {
|
} else {
|
||||||
|
@ -54,8 +54,7 @@
|
||||||
</Tabs>
|
</Tabs>
|
||||||
<div
|
<div
|
||||||
class="add-button"
|
class="add-button"
|
||||||
data-cy={`new-${selected === "External" ? "datasource" : "tabel"}`}
|
data-cy={`new-${selected === 'External' ? 'datasource' : 'tabel'}`}>
|
||||||
>
|
|
||||||
<Icon hoverable name="AddCircle" on:click={modal.show} />
|
<Icon hoverable name="AddCircle" on:click={modal.show} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -82,6 +81,10 @@
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
gap: var(--spacing-l);
|
gap: var(--spacing-l);
|
||||||
}
|
}
|
||||||
|
.content :global(> span) {
|
||||||
|
display: contents;
|
||||||
|
}
|
||||||
|
|
||||||
.tab-content-padding {
|
.tab-content-padding {
|
||||||
padding: 0 var(--spacing-xl);
|
padding: 0 var(--spacing-xl);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue