fix font family settings
This commit is contained in:
@@ -10,17 +10,22 @@ import { EditorView } from '@codemirror/view'; // Import EditorView
|
||||
const store = useRequestStore();
|
||||
const settings = useSettingsStore();
|
||||
|
||||
const transparentTheme = EditorView.theme({
|
||||
"&": {
|
||||
backgroundColor: "transparent !important",
|
||||
height: "100%"
|
||||
},
|
||||
".cm-gutters": {
|
||||
backgroundColor: "transparent !important"
|
||||
}
|
||||
});
|
||||
const extensions = computed(() => {
|
||||
const theme = EditorView.theme({
|
||||
"&": {
|
||||
backgroundColor: "transparent !important",
|
||||
height: "100%"
|
||||
},
|
||||
".cm-content, .cm-gutter": {
|
||||
fontFamily: `${settings.editorFontFamily} !important`
|
||||
},
|
||||
".cm-gutters": {
|
||||
backgroundColor: "transparent !important"
|
||||
}
|
||||
});
|
||||
|
||||
const extensions = [json(), oneDark, transparentTheme, EditorView.editable.of(false)];
|
||||
return [json(), oneDark, theme, EditorView.editable.of(false)];
|
||||
});
|
||||
|
||||
const formattedBody = computed(() => {
|
||||
if (!store.activeRequest.response) return '';
|
||||
|
||||
Reference in New Issue
Block a user