This commit is contained in:
2025-07-17 11:49:31 +08:00
parent b1fb932aae
commit e00fb9eadb
2 changed files with 52 additions and 69 deletions

View File

@@ -155,24 +155,21 @@ body {
tab-size: 4;
-moz-tab-size: 4;
text-align: left;
/* 换行控制 */
word-wrap: break-word; /* 兼容旧浏览器 */
overflow-wrap: break-word; /* 现代浏览器标准 */
word-break: normal; /* 保持单词完整 */
/* 排版优化 */
white-space: normal;
hyphens: manual; /* 禁用自动连字符 */
/* 容器约束 */
max-width: 100%;
display: block;
word-wrap: break-word;
overflow-wrap: anywhere;
word-break: normal;
white-space: normal !important;
}
.word-wrapper {
display: inline-block;
max-width: 100%;
}
/* 保护重要术语不换行 */
.protected-term {
white-space: nowrap;
display: inline-block;
}
.ql-editor>* {
cursor: text;
word-break: normal;