2021-04-27 17:43:56 +02:00
|
|
|
<div class="drawer-contents">
|
2021-04-28 14:42:44 +02:00
|
|
|
<div
|
|
|
|
class:no-sidebar={!$$slots.sidebar}
|
|
|
|
class="container"
|
|
|
|
data-cy="binding-dropdown-modal"
|
|
|
|
>
|
|
|
|
{#if $$slots.sidebar}
|
|
|
|
<div class="sidebar">
|
|
|
|
<slot name="sidebar" />
|
|
|
|
</div>
|
|
|
|
{/if}
|
2021-04-27 17:43:56 +02:00
|
|
|
<div class="main">
|
|
|
|
<slot name="main" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.drawer-contents {
|
|
|
|
height: 40vh;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
.container {
|
|
|
|
height: 100%;
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 290px 1fr;
|
|
|
|
}
|
2021-04-28 14:42:44 +02:00
|
|
|
.no-sidebar {
|
|
|
|
grid-template-columns: 1fr;
|
|
|
|
}
|
2021-04-27 17:43:56 +02:00
|
|
|
.sidebar {
|
|
|
|
border-right: var(--border-light);
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.sidebar::-webkit-scrollbar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.main {
|
|
|
|
font-family: var(--font-sans);
|
|
|
|
}
|
|
|
|
.main :global(textarea) {
|
|
|
|
min-height: 200px;
|
|
|
|
}
|
|
|
|
.main :global(p) {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
</style>
|