Skip to content

Commit

Permalink
🚨
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Feb 24, 2025
1 parent 0622233 commit 57aeb25
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/src/boot/globalEvent/mousemove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export const windowMouseMove = (event: MouseEvent, mouseIsEnter: boolean) => {
if (eventPath0 && eventPath0.nodeType !== 3 && eventPath0.classList.contains("av")) {
// 数据库居中时光标在数据库侧边 https://github.com/siyuan-note/siyuan/issues/13853
if (eventPath0.getAttribute("data-type") === "NodeAttributeView") {
const rowElement = hasClosestByClassName(document.elementFromPoint(eventPath0.firstElementChild.getBoundingClientRect().left + 10, event.clientY), "av__row")
const rowElement = hasClosestByClassName(document.elementFromPoint(eventPath0.firstElementChild.getBoundingClientRect().left + 10, event.clientY), "av__row");
if (rowElement && !rowElement.classList.contains("av__row--header")) {
getAllEditor().find(item => {
if (item.protyle.wysiwyg.element.contains(eventPath0)) {
Expand Down
8 changes: 4 additions & 4 deletions app/src/search/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ const scrollToCurrent = (contentElement: HTMLElement,currentRange: Range, conten
}
}
}
}
};

const renderNextSearchMark = (options: {
id: string,
Expand Down Expand Up @@ -1056,7 +1056,7 @@ const renderNextSearchMark = (options: {
if (!currentRange.toString()) {
highlightById(options.edit.protyle, options.id);
} else {
scrollToCurrent(options.edit.protyle.contentElement, currentRange, contentRect)
scrollToCurrent(options.edit.protyle.contentElement, currentRange, contentRect);
}
}
return;
Expand Down Expand Up @@ -1130,12 +1130,12 @@ export const getArticle = (options: {
if (isSupportCSSHL()) {
searchMarkRender(options.edit.protyle, getResponse.data.keywords, options.id, () => {
const highlightKeys = () => {
const currentRange = options.edit.protyle.highlight.ranges[options.edit.protyle.highlight.rangeIndex]
const currentRange = options.edit.protyle.highlight.ranges[options.edit.protyle.highlight.rangeIndex];
if (options.edit.protyle.highlight.ranges.length > 0 && currentRange) {
if (!currentRange.toString()) {
highlightById(options.edit.protyle, options.id);
} else {
scrollToCurrent(options.edit.protyle.contentElement, currentRange, contentRect)
scrollToCurrent(options.edit.protyle.contentElement, currentRange, contentRect);
}
} else {
highlightById(options.edit.protyle, options.id);
Expand Down
2 changes: 1 addition & 1 deletion app/src/sync/syncGuide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export const syncGuide = (app?: App) => {
/// #if MOBILE
if (0 === window.siyuan.config.sync.provider) {
if (needSubscribe()) {
return
return;
}
} else if (!isPaidUser()) {
showMessage(window.siyuan.languages["_kernel"][214]);
Expand Down

0 comments on commit 57aeb25

Please sign in to comment.