Skip to content

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

:bug: Expand table columns as rich text content grows

Daniel05e7b6dfc9f2
diff --git a/app/src/assets/scss/protyle/_protyle.scss b/app/src/assets/scss/protyle/_protyle.scss
index a4b136b49d..6f0bfd87d1 100644
--- a/app/src/assets/scss/protyle/_protyle.scss
+++ b/app/src/assets/scss/protyle/_protyle.scss
@@ -898,6 +898,13 @@
}
}
+.table__cell-rich,
+.table__cell-editor {
+ // 按内容计算宽度,使窄列在输入时自动撑开,同时保留单元格的宽度约束。
+ width: max-content;
+ max-width: 100%;
+}
+
.table__cell-rich {
min-width: 0;
min-height: 1.6em;