Skip to content

Commit fd3fd37

Browse files
committed
Fixed table list view, when full list of tables does not display.
1 parent 7807029 commit fd3fd37

File tree

3 files changed

+29
-24
lines changed

3 files changed

+29
-24
lines changed

src/App.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
#app
6666
display flex
6767
width 100%
68+
height 100%
6869
6970
// customizing some imported components and theme selectors
7071
input[type='text']:disabled

src/components/SidebarTables.vue

Lines changed: 27 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
<template lang="pug">
2-
el-row
3-
el-button(type="primary" plain @click="initialState")
4-
span Quick Connect
5-
el-row(class="change-title") Change Database
6-
el-select(:value="currentDb" @change="getCurrentDb" placeholder="Select Database" spellcheck="false" :title="currentDb" class="input-field")
7-
el-option(
8-
v-for="db in databaseList"
9-
:key="db.name"
10-
:value="db.name"
11-
)
12-
el-row(class="input-field")
13-
el-input(placeholder="Search Table" @input="filterTextChange" :value="filterText" suffix-icon="el-icon-search" spellcheck="false")
14-
el-row(class="table-actions")
15-
el-col(:span="12" class="title") TABLES
16-
el-col(:span="12" class="actions")
17-
i(:class="[loading ? 'el-icon-loading' : '', 'el-icon-refresh refresh']" @click="getDbTables() && toggleLoading()" title="Refresh Table List")
18-
i(class="el-icon-circle-plus-outline add" @click="toggleCreateModal" title="Create Table")
19-
i(class="el-icon-delete remove" v-if="currentTable" @click="toggleDeleteModal" title="Delete Table" :disabled="true")
20-
el-row(class="container")
2+
.outer
3+
.inner-fixed
4+
el-button(type="primary" plain @click="initialState")
5+
span Quick Connect
6+
el-row(class="change-title") Change Database
7+
el-select(:value="currentDb" @change="getCurrentDb" placeholder="Select Database" spellcheck="false" :title="currentDb" class="input-field")
8+
el-option(
9+
v-for="db in databaseList"
10+
:key="db.name"
11+
:value="db.name"
12+
)
13+
el-row(class="input-field")
14+
el-input(placeholder="Search Table" @input="filterTextChange" :value="filterText" suffix-icon="el-icon-search" spellcheck="false")
15+
el-row(class="table-actions")
16+
el-col(:span="12" class="title") TABLES
17+
el-col(:span="12" class="actions")
18+
i(:class="[loading ? 'el-icon-loading' : '', 'el-icon-refresh refresh']" @click="getDbTables() && toggleLoading()" title="Refresh Table List")
19+
i(class="el-icon-circle-plus-outline add" @click="toggleCreateModal" title="Create Table")
20+
i(class="el-icon-delete remove" v-if="currentTable" @click="toggleDeleteModal" title="Delete Table" :disabled="true")
21+
.inner-remaining
2122
.list-item(v-for="(table, index) in tableList" :key="index" @click="switchTable(table)" :class="{active: isActive(table)}")
2223
.info
2324
span {{ table }}
@@ -99,7 +100,6 @@
99100
align-items center
100101
display flex
101102
border-radius 5px
102-
transition .1s linear
103103
104104
.list-item:hover
105105
cursor pointer
@@ -124,9 +124,13 @@
124124
.refresh:hover
125125
color #52ceff
126126
127-
.container
128-
height 100vh
127+
.outer
128+
display flex
129+
flex-flow column
130+
height 100%
131+
132+
.inner-remaining
133+
flex-grow 1
129134
overflow-y auto
130-
transition .5s linear
131135
font-size 1em
132136
</style>

src/containers/Sidebar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161

6262
<style lang="stylus" scoped>
6363
.sidebar
64-
height 100vh
64+
height 100%
6565
width 100%
6666
min-width 150px
6767
</style>

0 commit comments

Comments
 (0)