mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 19:36:00 +00:00
don't dispose databases widget
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
import { writable } from 'svelte/store';
|
||||
import createRef from '../utility/createRef';
|
||||
|
||||
export let hidden = false;
|
||||
|
||||
let definitions = [];
|
||||
const dynamicPropsCollection = [];
|
||||
let clientHeight;
|
||||
@@ -32,16 +34,23 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<div class="main-container" bind:clientHeight>
|
||||
<div class="main-container" bind:clientHeight class:hidden>
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
<style>
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.main-container {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.main-container :not(.hidden) {
|
||||
display: flex;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user