Vanessa 2023-05-03 14:22:06 +08:00
parent f1f93287f5
commit 1ba4c4af77
2 changed files with 2 additions and 2 deletions

View file

@ -473,7 +473,7 @@
"customSort": "自定义排序",
"collapse": "折叠",
"blockEmbed": "嵌入块",
"gutterTip": "拖拽 移动位置<br>点击 打开菜单<br>⌘Click 进入<br>⌥Click 折叠/展开<br>⇧Click 修改属性",
"gutterTip": "点击 打开菜单<br>⌘Click 进入<br>⌥Click 折叠/展开<br>⇧Click 修改属性<br>拖拽 移动位置<br>⌃拖拽 重复<br>⌥拖拽 生成块引用<br>⇧拖拽 生成嵌入块<br>",
"gutterTip2": "点击 打开菜单<br>⇧Click 修改属性",
"linkDistance": "链接距离",
"collideStrength": "斥力强度",

View file

@ -44,7 +44,7 @@ export class Gutter {
constructor(protyle: IProtyle) {
this.element = document.createElement("div");
this.element.className = "protyle-gutters";
this.element.setAttribute("aria-label", window.siyuan.languages.gutterTip.replace("⌘Click", updateHotkeyTip("⌘Click")).replace("⌥Click", updateHotkeyTip("⌥Click")).replace("⇧Click", updateHotkeyTip("⇧Click")));
this.element.setAttribute("aria-label", window.siyuan.languages.gutterTip.replace(/⌘/g, updateHotkeyTip("⌘")).replace(/⌥/g, updateHotkeyTip("⌥")).replace(/⇧/g, updateHotkeyTip("⇧")).replace(/⌃/g, updateHotkeyTip("⌃")));
this.element.setAttribute("data-type", "a");
this.element.setAttribute("data-position", "right");
this.element.addEventListener("dragstart", (event: DragEvent & { target: HTMLElement }) => {