Update Panel layout for AttributeBarEditor

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov 2022-01-26 02:30:41 +03:00
parent e848480ef3
commit 4ba1b35777
2 changed files with 19 additions and 3 deletions

View File

@ -50,7 +50,13 @@
</div>
<ActionIcon icon={IconMoreH} size={'medium'} />
</div>
{#if $$slots.subtitle}<div class="flex-row-center subtitle"><slot name="subtitle" /></div>{/if}
{#if $$slots.subtitle}
<div class="flex-row-center subtitle">
<div class="flex-grow flex-row-center ml-10 mr-10">
<slot name="subtitle" />
</div>
</div>
{/if}
<div class="flex-col scroll-container">
<div class="flex-col content">
<slot />
@ -123,11 +129,19 @@
}
.subtitle {
overflow-x: auto;
flex-shrink: 0;
padding: 0 2rem;
height: 3.5rem;
min-height: 0;
height: 3.5rem;
border-bottom: 1px solid var(--theme-zone-bg);
&::-webkit-scrollbar:horizontal { height: .25rem; }
&::-webkit-scrollbar-track { margin: 0; }
&::-webkit-scrollbar-thumb {
background-color: var(--theme-menu-divider);
border-radius: .25rem;
&:hover { background-color: var(--theme-card-divider); }
}
}
}

View File

@ -201,12 +201,14 @@ p:last-child { margin-block-end: 0; }
.ml-3 { margin-left: .75rem; }
.ml-4 { margin-left: 1rem; }
.ml-6 { margin-left: 1.5rem; }
.ml-10 { margin-left: 2.5rem; }
.mr-1 { margin-right: .25rem; }
.mr-2 { margin-right: .5rem; }
.mr-3 { margin-right: .75rem; }
.mr-4 { margin-right: 1rem; }
.mr-6 { margin-right: 1.5rem; }
.mr-8 { margin-right: 2rem; }
.mr-10 { margin-right: 2.5rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }