From e74a7dee33fb2af33bd2889f483c8a1908c17288 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 30 Oct 2023 16:08:24 +0800 Subject: [PATCH] :art: fix https://github.com/siyuan-note/siyuan/issues/9524 --- app/src/protyle/header/Background.ts | 7 +++---- app/src/protyle/toolbar/index.ts | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.ts index b02b469f8..b96a3cd9d 100644 --- a/app/src/protyle/header/Background.ts +++ b/app/src/protyle/header/Background.ts @@ -304,10 +304,9 @@ export class Background { } else if (type === "asset") { const rect = target.getBoundingClientRect(); protyle.toolbar.showAssets(protyle, { - x: rect.right, - y: rect.bottom, - w: target.parentElement.clientWidth + 8, - h: rect.height + x: rect.right - 798, + y: rect.bottom + 8, + isLeft: false, }, (url) => { this.ial["title-img"] = `background-image:url("${url}")`; this.render(this.ial, protyle.block.rootID); diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index 3e4bf1330..52cdca5e4 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -1547,7 +1547,7 @@ export class Toolbar { this.subElement.style.width = ""; this.subElement.style.padding = ""; this.subElement.innerHTML = `
-
+
@@ -1557,7 +1557,7 @@ export class Toolbar {
-
+
`; const listElement = this.subElement.querySelector(".b3-list"); const previewElement = this.subElement.firstElementChild.lastElementChild;