show absolutely positioned comment (not relative to zoom)
This commit is contained in:
parent
14321b1e8d
commit
7d2343fc4d
6 changed files with 91 additions and 7 deletions
|
|
@ -153,13 +153,13 @@ function handleSubmit(event) {
|
|||
const date = dayjs().format();
|
||||
const newComment = {
|
||||
pageUri: page.uri + "/client-brief",
|
||||
filePageIndex: newCommentPageIndex.value,
|
||||
fileName: file.name,
|
||||
userUuid: user.uuid,
|
||||
text: newCommentText.value,
|
||||
date,
|
||||
position:
|
||||
{
|
||||
pageIndex: newCommentPageIndex.value,
|
||||
x: newCommentPosition.value.x,
|
||||
y: newCommentPosition.value.y,
|
||||
} ?? false,
|
||||
|
|
@ -168,6 +168,7 @@ function handleSubmit(event) {
|
|||
if (openedComment.value) {
|
||||
replyComment(newComment);
|
||||
} else {
|
||||
console.log(newComment);
|
||||
addComment(newComment);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue