Skip to content

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

:bug: Preserve table cell alignment and consistent content insets https://github.com/siyuan-note/siyuan/issues/19188

Danielbdb6467d9421
diff --git a/app/src/assets/scss/protyle/_protyle.scss b/app/src/assets/scss/protyle/_protyle.scss
index b690cc429d..455700c7b5 100644
--- a/app/src/assets/scss/protyle/_protyle.scss
+++ b/app/src/assets/scss/protyle/_protyle.scss
@@ -995,7 +995,18 @@
.table__cell-rich > .list[data-type="NodeList"],
.table__cell-editor .protyle-wysiwyg > .list {
// 首层列表抵消单元格的侧边留白,列表标记和正文使用相同的起始间距。
- margin-inline-start: -8px;
+ margin-inline: -8px;
+}
+
+.table__cell-editor .protyle-wysiwyg [data-node-id] {
+ // 单元格的对齐方式优先于正文的两端对齐设置。
+ text-align: inherit;
+}
+
+.table__cell-rich > :is(.p, .h1, .h2, .h3, .h4, .h5, .h6)[data-table-cell-node],
+.table__cell-editor .protyle-wysiwyg > :is(.p, .h1, .h2, .h3, .h4, .h5, .h6) {
+ // 单元格已提供侧边留白,多段落和标题与普通文本使用相同的对齐边界。
+ padding-inline: 0;
}
.protyle-wysiwyg [data-type="NodeTable"] {