mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-26 18:26:09 +01:00
This commit is contained in:
parent
9d86d64d87
commit
e74a7dee33
2 changed files with 5 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue