mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
This commit is contained in:
parent
66bf28625c
commit
c3e5164044
2 changed files with 13 additions and 0 deletions
|
|
@ -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({
|
||||
|
|
|
|||
1
app/src/types/index.d.ts
vendored
1
app/src/types/index.d.ts
vendored
|
|
@ -64,6 +64,7 @@ type TOperation =
|
|||
| "setAttrViewColDesc"
|
||||
| "setAttrViewBlockView"
|
||||
| "setAttrViewGroup"
|
||||
| "syncColWidth"
|
||||
type TBazaarType = "templates" | "icons" | "widgets" | "themes" | "plugins"
|
||||
type TCardType = "doc" | "notebook" | "all"
|
||||
type TEventBus = "ws-main" | "sync-start" | "sync-end" | "sync-fail" |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue