修复iOS模拟器中文字体显示异常

This commit is contained in:
JSR
2026-03-18 22:25:20 +08:00
parent 0df8fd4b0d
commit d839bf714c
2 changed files with 18 additions and 0 deletions
+2
View File
@@ -181,6 +181,8 @@ function MainContent(): React.JSX.Element {
algorithm: isDark ? antTheme.darkAlgorithm : antTheme.defaultAlgorithm, algorithm: isDark ? antTheme.darkAlgorithm : antTheme.defaultAlgorithm,
token: { token: {
colorPrimary: brandColor, colorPrimary: brandColor,
fontFamily:
'"PingFang SC", "Hiragino Sans GB", "Heiti SC", "Noto Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"',
}, },
}} }}
> >
+16
View File
@@ -1,5 +1,12 @@
@import "antd/dist/reset.css"; @import "antd/dist/reset.css";
:root {
--ss-font-family:
"PingFang SC", "Hiragino Sans GB", "Heiti SC", "Noto Sans SC", "Noto Sans CJK SC",
"Microsoft YaHei", "微软雅黑", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
"Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}
html, html,
body, body,
#root { #root {
@@ -9,11 +16,20 @@ body,
overflow: hidden; overflow: hidden;
user-select: none; user-select: none;
background: var(--ss-bg-color, #f5f5f5); background: var(--ss-bg-color, #f5f5f5);
font-family: var(--ss-font-family);
-webkit-text-size-adjust: 100%;
text-size-adjust: 100%;
} }
input, input,
textarea { textarea {
user-select: text; user-select: text;
font-family: var(--ss-font-family);
}
button,
select {
font-family: var(--ss-font-family);
} }
.ss-sidebar { .ss-sidebar {