Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Preserve table cell wrapping across editing transitions https://github.com/siyuan-note/siyuan/issues/19188

Danield06f3c9d18c7
diff --git a/app/src/assets/scss/protyle/_protyle.scss b/app/src/assets/scss/protyle/_protyle.scss
index 5bcf7f4558..683b749136 100644
--- a/app/src/assets/scss/protyle/_protyle.scss
+++ b/app/src/assets/scss/protyle/_protyle.scss
@@ -911,8 +911,8 @@
.table__cell-rich,
.table__cell-editor {
- // 按内容计算宽度,使窄列在输入时自动撑开,同时保留单元格的宽度约束。
- width: max-content;
+ // 跟随单元格的可用宽度,保证预览与编辑使用相同的折行边界。
+ width: auto;
max-width: 100%;
}