mirror of
https://github.com/zuktol/obsidian-data-files-editor.git
synced 2026-07-22 11:50:25 +00:00
Created custom css class for gutters
This commit is contained in:
parent
2c9a84e010
commit
552b66ea8b
3 changed files with 3 additions and 3 deletions
|
|
@ -20,7 +20,7 @@ export default class JsonView extends TextFileView {
|
|||
|
||||
onload(): void {
|
||||
super.onload();
|
||||
this.editorEl = this.contentEl.createDiv("markdown-source-view mod-cm6");
|
||||
this.editorEl = this.contentEl.createDiv("datafile-source-view mod-cm6");
|
||||
let extensions: Extension[];
|
||||
extensions = [
|
||||
basicSetup,
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ export default class TxtView extends TextFileView {
|
|||
|
||||
onload(): void {
|
||||
super.onload();
|
||||
this.editorEl = this.contentEl.createDiv("markdown-source-view mod-cm6");
|
||||
this.editorEl = this.contentEl.createDiv("datafile-source-view mod-cm6");
|
||||
this.cmEditor = new EditorView({
|
||||
state: EditorState.create({
|
||||
extensions: [
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ If your plugin does not need CSS, delete this file.
|
|||
|
||||
*/
|
||||
|
||||
.markdown-source-view.mod-cm6 .cm-gutters {
|
||||
.datafile-source-view.mod-cm6 .cm-gutters {
|
||||
flex: 0 0 auto;
|
||||
background-color: transparent;
|
||||
color: var(--text-faint) !important;
|
||||
|
|
|
|||
Loading…
Reference in a new issue