mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 06:02:33 +01:00
🚨
This commit is contained in:
parent
24856a1c84
commit
7e37563fcd
12 changed files with 26 additions and 28 deletions
|
|
@ -286,7 +286,7 @@ export class Gutter {
|
|||
blockElement.setAttribute("updated", newUpdated);
|
||||
} else {
|
||||
if (!protyle.disabled && event.shiftKey) {
|
||||
const blockId = rowElement.querySelector('[data-dtype="block"] .av__celltext--ref')?.getAttribute("data-id")
|
||||
const blockId = rowElement.querySelector('[data-dtype="block"] .av__celltext--ref')?.getAttribute("data-id");
|
||||
if (blockId) {
|
||||
fetchPost("/api/attr/getBlockAttrs", {id: blockId}, (response) => {
|
||||
openFileAttr(response.data, "av", protyle);
|
||||
|
|
@ -2243,9 +2243,9 @@ export class Gutter {
|
|||
element = rowElement;
|
||||
let iconAriaLabel = isMac() ? window.siyuan.languages.rowTip : window.siyuan.languages.rowTip.replace("⇧", "Shift+");
|
||||
if (protyle.disabled) {
|
||||
iconAriaLabel = window.siyuan.languages.rowTip.substring(0, window.siyuan.languages.rowTip.indexOf("<br"))
|
||||
iconAriaLabel = window.siyuan.languages.rowTip.substring(0, window.siyuan.languages.rowTip.indexOf("<br"));
|
||||
} else if (rowElement.querySelector('[data-dtype="block"]')?.getAttribute("data-detached") === "true") {
|
||||
iconAriaLabel = window.siyuan.languages.rowTip.substring(0, window.siyuan.languages.rowTip.lastIndexOf("<br"))
|
||||
iconAriaLabel = window.siyuan.languages.rowTip.substring(0, window.siyuan.languages.rowTip.lastIndexOf("<br"));
|
||||
}
|
||||
html = `<button data-type="NodeAttributeViewRowMenu" data-node-id="${dataNodeId}" data-row-id="${rowElement.dataset.id}" class="ariaLabel" data-position="right" aria-label="${iconAriaLabel}"><svg><use xlink:href="#iconDrag"></use></svg><span ${protyle.disabled ? "" : 'draggable="true" class="fn__grab"'}></span></button>`;
|
||||
if (!protyle.disabled) {
|
||||
|
|
@ -2278,7 +2278,7 @@ export class Gutter {
|
|||
index += 1;
|
||||
let gutterTip = this.gutterTip;
|
||||
if (protyle.disabled) {
|
||||
gutterTip = this.gutterTip.split("<br>").splice(0, 2).join("<br>")
|
||||
gutterTip = this.gutterTip.split("<br>").splice(0, 2).join("<br>");
|
||||
}
|
||||
const buttonHTML = `<button class="ariaLabel" data-position="right" aria-label="${gutterTip}"
|
||||
data-type="${type}" data-subtype="${nodeElement.getAttribute("data-subtype")}" data-node-id="${nodeElement.getAttribute("data-node-id")}">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue