mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
🚨
This commit is contained in:
parent
5ae2db8bb9
commit
4680e709f4
3 changed files with 3 additions and 3 deletions
|
|
@ -168,7 +168,7 @@ export class Wnd {
|
|||
}) {
|
||||
const it = this as HTMLElement;
|
||||
if(!window.siyuan.currentDragOverTabHeadersElement) {
|
||||
window.siyuan.currentDragOverTabHeadersElement = it
|
||||
window.siyuan.currentDragOverTabHeadersElement = it;
|
||||
} else {
|
||||
if (!window.siyuan.currentDragOverTabHeadersElement.isSameNode(it)) {
|
||||
window.siyuan.currentDragOverTabHeadersElement.classList.remove("layout-tab-bars--drag");
|
||||
|
|
|
|||
|
|
@ -1181,7 +1181,7 @@ data-type="navigation-root" data-path="/">
|
|||
countHTML = `<span class="popover__block counter b3-tooltips b3-tooltips__nw" aria-label="${window.siyuan.languages.ref}">${item.count}</span>`;
|
||||
}
|
||||
const ariaLabel = this.genDocAriaLabel(item, escapeAriaLabel);
|
||||
const paddingLeft = (item.path.split("/").length - 1) * 18
|
||||
const paddingLeft = (item.path.split("/").length - 1) * 18;
|
||||
return `<li data-node-id="${item.id}" data-name="${Lute.EscapeHTMLStr(item.name)}" draggable="true" data-count="${item.subFileCount}"
|
||||
data-type="navigation-file"
|
||||
style="--file-toggle-width:${paddingLeft + 18}px"
|
||||
|
|
|
|||
|
|
@ -1102,7 +1102,7 @@ export const getArticle = (options: {
|
|||
if (isSupportCSSHL()) {
|
||||
searchMarkRender(options.edit.protyle, getResponse.data.keywords, options.id, () => {
|
||||
if (options.edit.protyle.highlight.ranges.length > 0 && options.edit.protyle.highlight.ranges[options.edit.protyle.highlight.rangeIndex]) {
|
||||
const blockElement = hasClosestBlock(options.edit.protyle.highlight.ranges[options.edit.protyle.highlight.rangeIndex].startContainer)
|
||||
const blockElement = hasClosestBlock(options.edit.protyle.highlight.ranges[options.edit.protyle.highlight.rangeIndex].startContainer);
|
||||
if (blockElement && blockElement.getAttribute("data-node-id") !== options.id) {
|
||||
highlightById(options.edit.protyle, options.id);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue