Skip to content

Commit

Permalink
chore: use coding fonts in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
dongchengjie committed May 14, 2024
1 parent 5e43c06 commit e72f4a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/profile/editor-viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ export const EditorViewer = (props: Props) => {
padding: {
top: 33, // 顶部padding防止遮挡snippets
},
fontFamily:
"Fira Code, Roboto Mono, Source Code Pro, Menlo, Monaco, Consolas, Courier New, monospace",
});
});

Expand Down
5 changes: 5 additions & 0 deletions src/components/setting/mods/config-viewer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ export const ConfigViewer = forwardRef<DialogRef>((props, ref) => {
mouseWheelZoom: true, // Ctrl+滚轮调节缩放
readOnly: true, // 只读
readOnlyMessage: { value: t("ReadOnlyMessage") },
padding: {
top: 33, // 顶部padding防止遮挡snippets
},
fontFamily:
"Fira Code, Roboto Mono, Source Code Pro, Menlo, Monaco, Consolas, Courier New, monospace",
});
});
},
Expand Down

0 comments on commit e72f4a1

Please sign in to comment.