column manager

This commit is contained in:
Jan Prochazka
2021-03-06 09:31:02 +01:00
parent 8cf014efa4
commit 18e7171038
9 changed files with 148 additions and 2 deletions

View File

@@ -15,7 +15,7 @@
export let isSplitter = true;
export let initialValue = undefined;
let size = 0;
export let size = 0;
let clientWidth;
$: size = computeSplitterSize(initialValue, clientWidth);

View File

@@ -0,0 +1,15 @@
<script lang="ts">
export let width;
</script>
<div style={`max-width: ${width}px`}>
<slot />
</div>
<style>
div {
flex: 1 1;
overflow-y: auto;
overflow-x: auto;
}
</style>

View File

@@ -3,6 +3,7 @@
<style>
div {
display: flex;
border-bottom: 1px solid var(--theme-border);
margin-bottom: 5px;
}
</style>