fix: button effect not lining up on sub notes|

Closes #277
This commit is contained in:
Marie 2023-12-29 18:36:15 +01:00
parent 18e82c0627
commit 70433db9d9
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
2 changed files with 9 additions and 9 deletions

View file

@ -228,7 +228,7 @@ function like(): void {
noteId: props.note.id,
override: defaultLike.value,
});
const el = reactButton.value as HTMLElement | null | undefined;
const el = likeButton.value as HTMLElement | null | undefined;
if (el) {
const rect = el.getBoundingClientRect();
const x = rect.left + (el.offsetWidth / 2);

View file

@ -237,7 +237,7 @@ function like(): void {
noteId: props.note.id,
override: defaultLike.value,
});
const el = reactButton.value as HTMLElement | null | undefined;
const el = likeButton.value as HTMLElement | null | undefined;
if (el) {
const rect = el.getBoundingClientRect();
const x = rect.left + (el.offsetWidth / 2);