mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🚨
This commit is contained in:
parent
b70328c7e7
commit
41f72e65d3
4 changed files with 2 additions and 4 deletions
|
@ -13,7 +13,6 @@ import {showMessage} from "../../dialog/message";
|
||||||
import {fetchPost, fetchSyncPost} from "../../util/fetch";
|
import {fetchPost, fetchSyncPost} from "../../util/fetch";
|
||||||
import {openEmojiPanel, unicode2Emoji} from "../../emoji";
|
import {openEmojiPanel, unicode2Emoji} from "../../emoji";
|
||||||
import {mountHelp, newNotebook} from "../../util/mount";
|
import {mountHelp, newNotebook} from "../../util/mount";
|
||||||
import {confirmDialog} from "../../dialog/confirmDialog";
|
|
||||||
import {isNotCtrl, isOnlyMeta, setStorageVal, updateHotkeyAfterTip} from "../../protyle/util/compatibility";
|
import {isNotCtrl, isOnlyMeta, setStorageVal, updateHotkeyAfterTip} from "../../protyle/util/compatibility";
|
||||||
import {openFileById} from "../../editor/util";
|
import {openFileById} from "../../editor/util";
|
||||||
import {
|
import {
|
||||||
|
|
|
@ -9,7 +9,6 @@ import {genUUID} from "../../util/genID";
|
||||||
import {openMobileFileById} from "../editor";
|
import {openMobileFileById} from "../editor";
|
||||||
import {unicode2Emoji} from "../../emoji";
|
import {unicode2Emoji} from "../../emoji";
|
||||||
import {mountHelp, newNotebook} from "../../util/mount";
|
import {mountHelp, newNotebook} from "../../util/mount";
|
||||||
import {confirmDialog} from "../../dialog/confirmDialog";
|
|
||||||
import {newFile} from "../../util/newFile";
|
import {newFile} from "../../util/newFile";
|
||||||
import {MenuItem} from "../../menus/Menu";
|
import {MenuItem} from "../../menus/Menu";
|
||||||
import {App} from "../../index";
|
import {App} from "../../index";
|
||||||
|
|
|
@ -154,7 +154,7 @@ const afterRenderGallery = (options: ITableOptions) => {
|
||||||
if (typeof options.resetData.oldOffset === "number") {
|
if (typeof options.resetData.oldOffset === "number") {
|
||||||
options.protyle.contentElement.scrollTop = options.resetData.oldOffset;
|
options.protyle.contentElement.scrollTop = options.resetData.oldOffset;
|
||||||
}
|
}
|
||||||
if (options.blockElement.getAttribute("data-need-focus") === 'true') {
|
if (options.blockElement.getAttribute("data-need-focus") === "true") {
|
||||||
focusBlock(options.blockElement);
|
focusBlock(options.blockElement);
|
||||||
options.blockElement.removeAttribute("data-need-focus");
|
options.blockElement.removeAttribute("data-need-focus");
|
||||||
}
|
}
|
||||||
|
|
|
@ -282,7 +282,7 @@ const renderGroupTable = (options: ITableOptions) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const afterRenderTable = (options: ITableOptions) => {
|
const afterRenderTable = (options: ITableOptions) => {
|
||||||
if (options.blockElement.getAttribute("data-need-focus") === 'true') {
|
if (options.blockElement.getAttribute("data-need-focus") === "true") {
|
||||||
focusBlock(options.blockElement);
|
focusBlock(options.blockElement);
|
||||||
options.blockElement.removeAttribute("data-need-focus");
|
options.blockElement.removeAttribute("data-need-focus");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue