diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts index 003a67712..8a3aca37d 100644 --- a/app/src/menus/protyle.ts +++ b/app/src/menus/protyle.ts @@ -2153,14 +2153,14 @@ export const tableMenu = (protyle: IProtyle, nodeElement: Element, cellElement: }); } const thMatchElement = nodeElement.querySelectorAll("col")[colIndex]; - if (thMatchElement.style.width || thMatchElement.style.minWidth) { + if (thMatchElement.style.width || thMatchElement.style.minWidth !== "60px") { otherMenus.push({ id: "useDefaultWidth", label: window.siyuan.languages.useDefaultWidth, click: () => { const html = nodeElement.outerHTML; thMatchElement.style.width = ""; - thMatchElement.style.minWidth = ""; + thMatchElement.style.minWidth = "60px"; updateTransaction(protyle, nodeElement.getAttribute("data-node-id"), nodeElement.outerHTML, html); } }); diff --git a/app/src/protyle/util/table.ts b/app/src/protyle/util/table.ts index f2d83af3b..6ac3533b5 100644 --- a/app/src/protyle/util/table.ts +++ b/app/src/protyle/util/table.ts @@ -188,7 +188,7 @@ export const insertColumn = (protyle: IProtyle, nodeElement: Element, cellElemen newCellElement.textContent = " "; } } - tableElement.querySelectorAll("col")[index].insertAdjacentHTML(type, "