diff --git a/.github/release.md b/.github/release.md index 2321c9a..eaca826 100644 --- a/.github/release.md +++ b/.github/release.md @@ -12,7 +12,7 @@ - 优化私有标签样式, 组织页面下的 RSS 订阅按钮样式 - 同步用户点星仓库列表样式 - 同步 Issue/PR 详细页面侧边栏样式 -- 同步代码编辑器背景色 (修复亮色模式下编辑器背景色问题) #12 +- 同步代码编辑器背景色和字体大小 (修复亮色模式下编辑器背景色问题) #12 ## 🎈 Perf diff --git a/styles/components/editor.ts b/styles/components/editor.ts index 31a8729..852ab35 100644 --- a/styles/components/editor.ts +++ b/styles/components/editor.ts @@ -2,15 +2,19 @@ import { css, themeVars } from "src/types/vars"; export const monaco = css` .monaco-editor { - font-size: 12px; --vscode-editor-background: ${themeVars.color.body} !important; --vscode-editorGutter-background: ${themeVars.color.body} !important; + .monaco-mouse-cursor-text { + font-size: 12px !important; + } } // 滚动时固定在顶部的行 .monaco-editor .sticky-widget { background: ${themeVars.color.body} !important; - border-bottom: 0.5px solid ${themeVars.color.secondary.self}; box-shadow: 0 1px 0 ${themeVars.color.secondary.self} !important; width: 100% !important; + .sticky-line-content { + font-size: 12px !important; + } } `;