This commit is contained in:
2025-07-17 12:00:46 +08:00
parent 5e9ace5832
commit 5f5c7d7cf4
2 changed files with 38 additions and 55 deletions

View File

@@ -144,7 +144,21 @@ body {
margin: 0;
padding: 0
}
/* 空白占位符样式 */
.space-char {
display: inline;
white-space: pre; /* 保留空白 */
position: relative;
padding-right: 0.15em; /* 视觉间距补偿 */
}
.space-char:after {
content: " ";
visibility: hidden;
}
.space-replaced {
display: inline;
white-space: normal;
}
.ql-editor {
box-sizing: border-box;
line-height: 1.42;
@@ -157,19 +171,9 @@ body {
text-align: left;
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;