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 = `