mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 07:48:49 +01:00
🚨
This commit is contained in:
parent
0622233933
commit
57aeb25e66
3 changed files with 6 additions and 6 deletions
|
|
@ -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)) {
|
||||
|
|
|
|||
|
|
@ -1028,7 +1028,7 @@ const scrollToCurrent = (contentElement: HTMLElement,currentRange: Range, conten
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
const renderNextSearchMark = (options: {
|
||||
id: string,
|
||||
|
|
@ -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;
|
||||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue