feat(UI): sticky schema names in explore bar

This commit is contained in:
fabio286 2021-02-20 18:55:08 +01:00
parent 2f58007af4
commit 110b0b414c
2 changed files with 10 additions and 1 deletions

View File

@ -256,6 +256,13 @@ export default {
<style lang="scss">
.workspace-explorebar-database {
.database-name{
position: sticky;
top: 0;
background: $bg-color-gray;
z-index: 2;
}
.database-name,
.misc-name,
a.table-name {
@ -299,7 +306,7 @@ export default {
.misc-name {
&:hover {
color: $body-font-color;
background: rgba($color: #fff, $alpha: 0.05);
background: $bg-color-light;
border-radius: 2px;
}
}

View File

@ -36,6 +36,7 @@
<button
v-if="isTable"
class="btn btn-dark btn-sm"
:disabled="isQuering"
@click="showFakerModal"
>
<span>{{ $t('message.tableFiller') }}</span>
@ -243,6 +244,7 @@ export default {
this.isAddModal = false;
},
showFakerModal () {
if (this.isQuering) return;
this.isFakerModal = true;
},
hideFakerModal () {