1
1
mirror of https://github.com/Fabio286/antares.git synced 2025-06-05 21:59:22 +02:00

Added table tab

This commit is contained in:
2020-06-12 18:10:45 +02:00
parent 29812f7ee3
commit 68b128c550
13 changed files with 309 additions and 138 deletions

View File

@ -17,8 +17,13 @@
<i class="material-icons ml-1">save</i>
</button>
</div>
<div v-if="workspace.breadcrumbs.database">
{{ $t('word.schema') }}: <b>{{ workspace.breadcrumbs.database }}</b>
<div class="workspace-query-info">
<div v-if="results.rows">
{{ $t('word.results') }}: <b>{{ results.rows.length }}</b>
</div>
<div v-if="workspace.breadcrumbs.database">
{{ $t('word.schema') }}: <b>{{ workspace.breadcrumbs.database }}</b>
</div>
</div>
</div>
</div>
@ -112,40 +117,12 @@ export default {
margin-right: .4rem;
}
}
}
}
.workspace-query-results{
overflow: auto;
white-space: nowrap;
.workspace-query-info{
display: flex;
.table{
width: auto;
.tr:focus{
background: rgba($color: #000000, $alpha: .3);
}
.th{
position: sticky;
top: 0;
background: $bg-color;
border-color: $bg-color-light;
padding: .1rem .4rem;
font-weight: 400;
}
.td{
border-left: 1px solid;
border-color: $bg-color-light;
padding: 0 .4rem;
text-overflow: ellipsis;
max-width: 200px;
white-space: nowrap;
overflow: hidden;
&:first-child{
border-left: none;
> div + div{
padding-left: .6rem;
}
}
}