chore: cleanup

This commit is contained in:
liyasthomas
2021-11-15 16:25:56 +05:30
parent 7e9fc486f2
commit 2bee4342b8
3 changed files with 13 additions and 3 deletions

View File

@@ -288,7 +288,7 @@ pre.ace_editor {
}
}
input[type="checkbox"] {
input[type="checkbox"].checkbox {
@apply hidden;
&,

View File

@@ -194,7 +194,6 @@ export function useCodemirror(
}
if (update.docChanged) {
// Expensive on big files ?
console.log("doc change")
cachedValue.value = update.state.doc
.toJSON()
.join(update.state.lineBreak)

View File

@@ -49,6 +49,17 @@ export const baseTheme = EditorView.theme({
".cm-panels.cm-panels-bottom": {
borderTop: "1px solid var(--divider-light-color)",
},
".cm-search": {
display: "flex",
alignItems: "center",
flexWrap: "nowrap",
flexShrink: 0,
overflow: "auto",
},
".cm-search label": {
display: "inline-flex",
alignItems: "center",
},
".cm-textfield": {
backgroundColor: "var(--primary-dark-color)",
color: "var(--secondary-light-color)",
@@ -70,7 +81,7 @@ export const baseTheme = EditorView.theme({
".cm-completionLabel": {
color: "var(--secondary-color)",
},
".cm-tooltip-autocomplete ul": {
".cm-tooltip.cm-tooltip-autocomplete > ul": {
fontFamily: "var(--font-mono)",
},
".cm-tooltip-autocomplete ul li[aria-selected]": {