This commit is contained in:
Vanessa 2025-01-05 09:37:30 +08:00
parent 5ae2db8bb9
commit 4680e709f4
3 changed files with 3 additions and 3 deletions

View file

@ -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");

View file

@ -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"

View file

@ -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 {