Skip to content
Snippets Groups Projects
Unverified Commit 7d85c8a5 authored by Martin Weise's avatar Martin Weise
Browse files

Fixed the editor style in the dark

parent 53c1b4c8
No related branches found
No related tags found
2 merge requests!81New stable release,!80Multiple features connected with user management and ownership of databases
This commit is part of merge request !81. Comments created here will be created in the context of that merge request.
......@@ -2,9 +2,10 @@
<div>
<editor
v-model="content"
:class="{ 'theme-dark': is_dark }"
:value="value || content"
lang="sql"
:theme="theme"
theme="xcode"
width="600"
:height="height"
@init="editorInit" />
......@@ -28,8 +29,7 @@ export default {
},
data () {
return {
content: this.value || '-- MariaDB 10.5 Query\n',
theme: 'xcode'
content: this.value || '-- MariaDB 10.5 Query\n'
}
},
computed: {
......@@ -38,6 +38,9 @@ export default {
// if (!this.disabled) { return 150 }
// const numLines = this.value.split('\n').length
// return numLines * 25
},
is_dark () {
return this.$vuetify.theme.dark
}
},
watch: {
......@@ -74,4 +77,8 @@ export default {
</script>
<style scoped>
.theme-dark {
background: none;
color: white;
}
</style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment