mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 15:58:49 +01:00
🎨
This commit is contained in:
parent
35853cfedb
commit
2cce3c3e12
1 changed files with 4 additions and 5 deletions
|
|
@ -43,6 +43,10 @@ export const netImg2LocalAssets = (protyle: IProtyle) => {
|
|||
};
|
||||
|
||||
export const fullscreen = (element: Element, btnElement?: Element) => {
|
||||
setTimeout(() => {
|
||||
hideAllElements(["gutter"]);
|
||||
}, Constants.TIMEOUT_TRANSITION); // 等待页面动画结束
|
||||
|
||||
const isFullscreen = element.className.includes("fullscreen");
|
||||
if (isFullscreen) {
|
||||
element.classList.remove("fullscreen");
|
||||
|
|
@ -76,11 +80,6 @@ export const fullscreen = (element: Element, btnElement?: Element) => {
|
|||
}
|
||||
/// #if !MOBILE
|
||||
if (element.classList.contains("protyle")) {
|
||||
// 等待页面动画结束
|
||||
setTimeout(() => {
|
||||
hideAllElements(["gutter"]);
|
||||
}, Constants.TIMEOUT_TRANSITION);
|
||||
|
||||
window.siyuan.editorIsFullscreen = !isFullscreen;
|
||||
}
|
||||
getAllModels().editor.forEach(item => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue