1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2026-03-25 07:26:17 +08:00

move run button to the menu

This commit is contained in:
lana-k
2020-11-04 22:18:04 +01:00
parent 1037185a6a
commit 3e52dcac2c
3 changed files with 12 additions and 21 deletions

View File

@@ -3,21 +3,12 @@
<splitpanes
class="query-results-splitter"
horizontal
:before="{ size: 50, max: 50 }"
:before="{ size: 50, max: 70 }"
:after="{ size: 50, max: 100 }"
>
<template #left-pane>
<div class="query-editor">
<sql-editor v-model="query" />
<div class="run-btn-container">
<button
class="primary run-btn"
@click="execute"
:disabled="!$store.state.schema || !query"
>
Run
</button>
</div>
</div>
</template>
<template #right-pane>
@@ -171,12 +162,8 @@ export default {
background-color: var(--color-bg-light);
}
.run-btn {
margin-top: 24px;
}
.query-editor {
padding: 52px 52px 24px;
padding: 52px;
display: flex;
flex-direction: column;
height: 100%;
@@ -185,10 +172,6 @@ export default {
min-height: 190px;
}
.run-btn-container {
text-align: right;
}
.table-view {
margin: 0 52px;
height: calc(100% - 88px);