mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
5f2f97db79
commit
6148e5fd29
3 changed files with 9 additions and 3 deletions
|
|
@ -1063,12 +1063,13 @@ export const tableMenu = (protyle: IProtyle, nodeElement: Element, cellElement:
|
|||
});
|
||||
}
|
||||
const thMatchElement = nodeElement.querySelectorAll("col")[colIndex];
|
||||
if (thMatchElement.style.width) {
|
||||
if (thMatchElement.style.width || thMatchElement.style.minWidth) {
|
||||
menus.push({
|
||||
label: window.siyuan.languages.useDefaultWidth,
|
||||
click: () => {
|
||||
const html = nodeElement.outerHTML;
|
||||
thMatchElement.style.width = "";
|
||||
thMatchElement.style.minWidth = "";
|
||||
updateTransaction(protyle, nodeElement.getAttribute("data-node-id"), nodeElement.outerHTML, html);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue