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 background color previews https://github.com/siyuan-note/siyuan/issues/4785
Daniel92704b7410d1
diff --git a/app/src/assets/scss/protyle/_protyle.scss b/app/src/assets/scss/protyle/_protyle.scssindex 4f4e3ab3bc..ca9d3e9afc 100644--- a/app/src/assets/scss/protyle/_protyle.scss+++ b/app/src/assets/scss/protyle/_protyle.scss@@ -806,27 +806,12 @@ table + .protyle-action__table {&__color {display: inline-block;+ align-self: center;+ flex-shrink: 0;width: 16px;height: 16px;margin-right: 8px;- vertical-align: middle;border: 1px solid var(--b3-border-color);border-radius: 50%;}-- &__color-menu {- box-sizing: border-box;- width: min(360px, calc(100vw - 16px));-- & > .b3-menu__items {- display: grid;- grid-template-columns: repeat(2, minmax(0, 1fr));- }-- .b3-menu__label {- min-width: 0;- overflow: hidden;- text-overflow: ellipsis;- }- }}diff --git a/app/src/protyle/util/tableControl.ts b/app/src/protyle/util/tableControl.tsindex 9f6b6ea047..e699cc0c3b 100644--- a/app/src/protyle/util/tableControl.ts+++ b/app/src/protyle/util/tableControl.ts@@ -764,14 +764,11 @@ export class TableControl {label: window.siyuan.languages.clear,click: () => this.clearCells(),}).element);- const backgroundMenuItem = new MenuItem({+ menu.append(new MenuItem({icon: "iconTheme",label: window.siyuan.languages.colorPrimary,submenu: this.getBackgroundMenus(),- }).element;- backgroundMenuItem.querySelector(":scope > .b3-menu__submenu")- ?.classList.add("protyle-table-control__color-menu");- menu.append(backgroundMenuItem);+ }).element);if (this.selection.mode === "cell") {this.appendCellMenus(rectangle);} else {