1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00

2 Commits

Author SHA1 Message Date
lana-k
a2464d839f #115 fix version number 2024-01-07 13:55:38 +01:00
lana-k
316e603c3c #115 style fixes 2024-01-07 13:37:21 +01:00
3 changed files with 13 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "sqliteviz",
"version": "0.24.0",
"version": "0.24.1",
"license": "Apache-2.0",
"private": true,
"scripts": {

View File

@@ -216,6 +216,6 @@ table.sqliteviz-table {
}
.column-cell {
max-width: 0;
max-width: 150px;
}
</style>

View File

@@ -25,6 +25,7 @@
v-if="currentFormat === 'json' && formattedJson"
:value="formattedJson"
:options="cmOptions"
class="json-value"
/>
<pre
v-if="currentFormat === 'text'"
@@ -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: {
@@ -107,6 +108,7 @@ export default {
}
},
cellValue () {
this.messages = []
if (this.currentFormat === 'json') {
this.formatJson(this.cellValue)
}
@@ -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 {