Vanessa 2025-07-11 11:19:47 +08:00
parent 66bf28625c
commit c3e5164044
2 changed files with 13 additions and 0 deletions

View file

@ -955,6 +955,18 @@ export const showColMenu = (protyle: IProtyle, blockElement: Element, cellElemen
updateAttrViewCellAnimation(blockElement.querySelector(`.av__row--header .av__cell[data-col-id="${colId}"]`), undefined, {pin: !isPin});
}
});
menu.addItem({
icon: "iconRefresh",
label: window.siyuan.languages.syncColWidth,
click() {
transaction(protyle, [{
action: "syncColWidth",
keyID: colId,
avID,
id: blockElement.getAttribute(Constants.CUSTOM_SY_AV_VIEW),
}]);
}
});
if (type !== "block") {
if (type !== "relation") {
menu.addItem({