mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
This commit is contained in:
parent
1c59aa2243
commit
a6ef9d24b9
1 changed files with 4 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ import {electronUndo} from "../../../undo";
|
|||
import {addClearButton} from "../../../../util/addClearButton";
|
||||
import {updateSearch} from "../render";
|
||||
import {getViewIcon} from "../view";
|
||||
import {processRender} from "../../../util/processCode";
|
||||
|
||||
export const renderGallery = (options: {
|
||||
blockElement: HTMLElement,
|
||||
|
|
@ -185,6 +186,9 @@ ${view.hideAttrViewName ? " av__gallery--top" : ""}">
|
|||
galleryElement.classList.remove("av__gallery--top");
|
||||
}
|
||||
}
|
||||
if (view.coverFrom === 1) {
|
||||
processRender(options.blockElement);
|
||||
}
|
||||
if (typeof oldOffset === "number") {
|
||||
options.protyle.contentElement.scrollTop = oldOffset;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue