An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Align image size icons and remove the chart submenu https://github.com/siyuan-note/siyuan/issues/19813
Vanessa59d3b7b6f335
diff --git a/app/src/config/entryVisibility/catalog.test.ts b/app/src/config/entryVisibility/catalog.test.tsindex 6694c8659f..3821c6bc5c 100644--- a/app/src/config/entryVisibility/catalog.test.ts+++ b/app/src/config/entryVisibility/catalog.test.ts@@ -822,7 +822,8 @@ test("super block actions and vertical alignment use their respective menu group});test("gutter height menus follow width and stay aligned across selection scopes", () => {- assert.deepEqual(getEntryCatalogNode("gutter.single.chart")?.children?.map(item => item.key), ["update"]);+ assert.equal(getEntryCatalogNode("gutter.single.chart"), undefined);+ assert.equal(getEntryCatalogNode("gutter.single.separator_chart"), undefined);assert.equal(getEntryCatalogNode("gutter.single.chart.height"), undefined);const expectedHeightOrder = ["heightInput",diff --git a/app/src/config/entryVisibility/catalog.ts b/app/src/config/entryVisibility/catalog.tsindex d9871834c2..ae7340824a 100644--- a/app/src/config/entryVisibility/catalog.ts+++ b/app/src/config/entryVisibility/catalog.ts@@ -405,8 +405,6 @@ const gutterSingle = () => [node("md27", lang("md27")),node("saveCodeBlockAsFile", lang("saveCodeBlockAsFile")),]),- separator("separator_chart"),- node("chart", lang("chart"), true, [node("update", lang("update"))]),separator("separator_table"),gutterTable(),separator("separator_exportCSV"),diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.tsindex a99a321967..47b499434a 100644--- a/app/src/menus/protyle.ts+++ b/app/src/menus/protyle.ts@@ -1413,6 +1413,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLElemelet rangeElement: HTMLInputElement;window.siyuan.menus.menu.append(new MenuItem({id: "width",+ icon: "iconWidth",label: window.siyuan.languages.width,submenu: [{id: "widthInput",diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.tsindex 856f8fb6cd..e35b07d5e0 100644--- a/app/src/protyle/gutter/index.ts+++ b/app/src/protyle/gutter/index.ts@@ -2316,21 +2316,6 @@ export class Gutter {}}] : [])]}).element);- } else if (type === "NodeCodeBlock" && !protyle.disabled && nodeElement.getAttribute("data-subtype") === "echarts") {- window.siyuan.menus.menu.append(new MenuItem({id: "separator_chart", type: "separator"}).element);- window.siyuan.menus.menu.append(new MenuItem({- id: "chart",- label: window.siyuan.languages.chart,- icon: "iconCode",- submenu: [{- id: "update",- label: window.siyuan.languages.update,- icon: "iconEdit",- click() {- protyle.toolbar.showRender(protyle, nodeElement);- }- }]- }).element);} else if (type === "NodeTable" && !protyle.disabled) {let range = getEditorRange(nodeElement);const tableElement = nodeElement.querySelector("table");