mirror of
https://github.com/YuleBest/LuminPro.git
synced 2026-12-04 00:54:42 +08:00
fix(webui): 日志 code 元素继承 pre 的等宽栈,中文不再回落到宋体
浏览器 UA 样式表对 code 单独设置 font-family: monospace(不继承父级), 导致日志正文的中文仍走通用 monospace 兜底;改为显式 inherit
This commit is contained in:
1 parent
bb20b56b48
commit
78807937bd
1 file changed
+7
@@ -94,6 +94,13 @@ const levelClass = (level) => `log-line--${(level || 'plain').toLowerCase()}`
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
/* UA 样式表给 code 单独设了 font-family: monospace(不继承 pre),
|
||||
必须显式 inherit,否则中文回落到宋体 */
|
||||
.log-output code {
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
}
|
||||
|
||||
.log-line {
|
||||
display: block;
|
||||
white-space: pre-wrap;
|
||||
|
||||
Reference in new issue
Block a user