Unify formats

This commit is contained in:
Adria Navarro 2023-11-23 09:59:59 +01:00
parent 4f544343f3
commit 54b2fec3c1
2 changed files with 11 additions and 4 deletions

View File

@ -11,6 +11,7 @@
export let onClickCloseButton export let onClickCloseButton
export let borderLeft = false export let borderLeft = false
export let borderRight = false export let borderRight = false
export let borderBottomHeader = true
export let wide = false export let wide = false
export let extraWide = false export let extraWide = false
export let closeButtonIcon = "Close" export let closeButtonIcon = "Close"
@ -26,7 +27,11 @@
class:borderLeft class:borderLeft
class:borderRight class:borderRight
> >
<div class="header" class:custom={customHeaderContent}> <div
class="header"
class:custom={customHeaderContent}
class:borderBottom={borderBottomHeader}
>
{#if showBackButton} {#if showBackButton}
<Icon name="ArrowLeft" hoverable on:click={onClickBackButton} /> <Icon name="ArrowLeft" hoverable on:click={onClickBackButton} />
{/if} {/if}
@ -94,9 +99,11 @@
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 0 var(--spacing-l); padding: 0 var(--spacing-l);
border-bottom: var(--border-light);
gap: var(--spacing-m); gap: var(--spacing-m);
} }
.header.borderBottom {
border-bottom: var(--border-light);
}
.title { .title {
flex: 1 1 auto; flex: 1 1 auto;
width: 0; width: 0;

View File

@ -21,7 +21,7 @@
<!-- routify:options index=1 --> <!-- routify:options index=1 -->
<div class="data"> <div class="data">
{#if !$isActive("./new")} {#if !$isActive("./new")}
<Panel borderRight> <Panel borderRight borderBottomHeader={false}>
<span class="panel-title-content" slot="panel-title-content"> <span class="panel-title-content" slot="panel-title-content">
<NavHeader <NavHeader
title="Sources" title="Sources"
@ -30,7 +30,7 @@
onAdd={() => $goto("./new")} onAdd={() => $goto("./new")}
/> />
</span> </span>
<Layout paddingX="L" paddingY="XL" gap="S"> <Layout paddingX="L" paddingY="none" gap="S">
<DatasourceNavigator searchTerm={searchValue} /> <DatasourceNavigator searchTerm={searchValue} />
</Layout> </Layout>
</Panel> </Panel>