An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Preserve table cell widths when editing nested lists
Daniel6a44adc16e30
diff --git a/app/src/assets/scss/protyle/_protyle.scss b/app/src/assets/scss/protyle/_protyle.scssindex 455700c7b5..c59d25dfa3 100644--- a/app/src/assets/scss/protyle/_protyle.scss+++ b/app/src/assets/scss/protyle/_protyle.scss@@ -949,6 +949,11 @@.protyle-content {overflow: visible;++ &[data-padding-mode="responsive"] {+ // 单元格由内容参与列宽计算,不能隔离内部列表等块的固有宽度。+ container-type: normal;+ }}.protyle-wysiwyg {@@ -994,8 +999,14 @@.table__cell-rich > .list[data-type="NodeList"],.table__cell-editor .protyle-wysiwyg > .list {- // 首层列表抵消单元格的侧边留白,列表标记和正文使用相同的起始间距。- margin-inline: -8px;+ // 首层列表只抵消起始侧留白,末端保留在内容容器内,避免窄列裁掉文字和光标。+ margin-inline: -8px 0;+}++.table__cell-rich .li [data-table-cell-content],+.table__cell-editor .protyle-wysiwyg .li [contenteditable="true"] {+ // 列宽收缩时,列表缩进之外至少保留一个字符的空间。+ min-width: 1em;}.table__cell-editor .protyle-wysiwyg [data-node-id] {