Skip to content

Commit

Permalink
#115 style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lana-k committed Jan 7, 2024
1 parent 88466ec commit 316e603
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,6 @@ table.sqliteviz-table {
}
.column-cell {
max-width: 0;
max-width: 150px;
}
</style>
15 changes: 11 additions & 4 deletions src/views/Main/Workspace/Tabs/Tab/RunResult/ValueViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
v-if="currentFormat === 'json' && formattedJson"
:value="formattedJson"
:options="cmOptions"
class="json-value"
/>
<pre
v-if="currentFormat === 'text'"
Expand Down Expand Up @@ -62,8 +63,8 @@ export default {
data () {
return {
formats: [
{ text: 'JSON', value: 'json' },
{ text: 'Text', value: 'text' }
{ text: 'Text', value: 'text' },
{ text: 'JSON', value: 'json' }
],
currentFormat: 'text',
cmOptions: {
Expand Down Expand Up @@ -107,6 +108,7 @@ export default {
}
},
cellValue () {
this.messages = []
if (this.currentFormat === 'json') {
this.formatJson(this.cellValue)
}
Expand Down Expand Up @@ -154,17 +156,22 @@ export default {
overflow: auto;
}
.text-value {
padding: 8px 8px;
padding: 0 8px;
margin: 0;
color: var(--color-text-base);
}
.json-value {
margin-top: -4px;
}
.text-value.meta-value {
font-style: italic;
color: var(--color-text-light-2);
}
.messages {
margin: 8px;
margin: 0 8px;
}
.value-viewer-toolbar button {
Expand Down

0 comments on commit 316e603

Please sign in to comment.