Update readonly styling for code editor (#4085)

Fixes #3365
This commit is contained in:
YannickMol
2021-02-16 19:56:15 +01:00
committed by GitHub
parent 335c3eab57
commit e691c2a911
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="interface-code codemirror-custom-styles">
<div class="interface-code codemirror-custom-styles" :class="{ disabled }">
<textarea ref="codemirrorEl" :value="stringValue" />
<v-button small icon secondary v-if="template" v-tooltip.left="$t('fill_template')" @click="fillTemplate">

View File

@@ -17,6 +17,10 @@
transition: all var(--fast) var(--transition);
}
.disabled .CodeMirror {
background-color: var(--background-subdued);
}
.CodeMirror .CodeMirror-placeholder{
color: var(--foreground-subdued);
}