Vanessa 2023-10-04 21:35:40 +08:00
parent 61ee5676c4
commit 3ffc7b249b
8 changed files with 54 additions and 24 deletions

View file

@ -125,7 +125,9 @@ export class Files extends Model {
const rect = target.getBoundingClientRect();
openEmojiPanel(target.parentElement.getAttribute("data-url"), "notebook", {
x: rect.left,
y: rect.bottom
y: rect.bottom,
h: rect.height,
w: rect.width,
});
break;
} else if (type === "toggle") {
@ -247,12 +249,16 @@ export class Files extends Model {
if (target.parentElement.getAttribute("data-type") === "navigation-file") {
openEmojiPanel(target.parentElement.getAttribute("data-node-id"), "doc", {
x: rect.left,
y: rect.bottom
y: rect.bottom,
h: rect.height,
w: rect.width,
});
} else {
openEmojiPanel(target.parentElement.parentElement.getAttribute("data-url"), "notebook", {
x: rect.left,
y: rect.bottom
y: rect.bottom,
h: rect.height,
w: rect.width,
});
}
break;