mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 23:14:07 +01:00
🐛 CSS
This commit is contained in:
parent
1710194122
commit
07334bed6a
3 changed files with 10 additions and 8 deletions
|
|
@ -1161,7 +1161,7 @@ const renderNextSearchMark = (options: {
|
|||
target: Element,
|
||||
}) => {
|
||||
const contentRect = options.edit.protyle.contentElement.getBoundingClientRect();
|
||||
if (CSS.highlights) {
|
||||
if (CSS?.highlights) {
|
||||
options.edit.protyle.highlight.markHL.clear();
|
||||
options.edit.protyle.highlight.mark.clear();
|
||||
options.edit.protyle.highlight.rangeIndex++;
|
||||
|
|
@ -1239,7 +1239,7 @@ export const getArticle = (options: {
|
|||
}
|
||||
const contentRect = options.edit.protyle.contentElement.getBoundingClientRect();
|
||||
let matchRectTop: number;
|
||||
if (CSS.highlights) {
|
||||
if (CSS?.highlights) {
|
||||
options.edit.protyle.highlight.rangeIndex = 0;
|
||||
searchMarkRender(options.edit.protyle, matchElements);
|
||||
matchRectTop = options.edit.protyle.highlight.ranges[0].getBoundingClientRect().top;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue