mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 14:16:01 +00:00
column manager
This commit is contained in:
@@ -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);
|
||||
|
||||
15
packages/web/src/elements/ManagerInnerContainer.svelte
Normal file
15
packages/web/src/elements/ManagerInnerContainer.svelte
Normal 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>
|
||||
@@ -3,6 +3,7 @@
|
||||
<style>
|
||||
div {
|
||||
display: flex;
|
||||
border-bottom: 1px solid var(--theme-border);
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user