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: Align table cell lists as a whole https://github.com/siyuan-note/siyuan/issues/19188
Daniele3250ad3834b
diff --git a/app/src/assets/scss/protyle/_protyle.scss b/app/src/assets/scss/protyle/_protyle.scssindex 0a2f92b5ca..398f7c993a 100644--- a/app/src/assets/scss/protyle/_protyle.scss+++ b/app/src/assets/scss/protyle/_protyle.scss@@ -983,9 +983,29 @@}.table__cell-rich > .list[data-type="NodeList"],-.table__cell-editor .protyle-wysiwyg > .list {- // 首层列表只抵消起始侧留白,末端保留在内容容器内,避免窄列裁掉文字和光标。- margin-inline: -8px 0;+.table__cell-editor .protyle-wysiwyg > .list[data-type="NodeList"] {+ // 首层列表按内容宽度整体对齐,内部保留左对齐,窄列中仍限制宽度以便换行。+ margin-inline: var(--b3-table-cell-list-start, -8px) var(--b3-table-cell-list-end, 0);+ width: fit-content;+ max-width: calc(100% + var(--b3-table-cell-list-inset, 8px));+ text-align: left;+}++.protyle-wysiwyg :is(td, th) {+ // 普通左对齐抵消列表起始侧留白,居中和居右则使用单元格内容边界。+ &[align="center"]:not([style*="text-align:"]),+ &[style*="text-align: center"] {+ --b3-table-cell-list-start: auto;+ --b3-table-cell-list-end: auto;+ --b3-table-cell-list-inset: 0px;+ }++ &[align="right"]:not([style*="text-align:"]),+ &[style*="text-align: right"] {+ --b3-table-cell-list-start: auto;+ --b3-table-cell-list-end: 0;+ --b3-table-cell-list-inset: 0px;+ }}.table__cell-rich .li [data-table-cell-content],