fix styling and positioning of post menu

This commit is contained in:
Tom
2023-05-25 13:27:09 +02:00
parent e392a1e584
commit 52b7243035
3 changed files with 29 additions and 43 deletions
+1 -1
View File
@@ -835,7 +835,7 @@ const Board = () => {
onClick={() => {
const rect = threadMenuRefs.current[thread.cid].getBoundingClientRect();
const menu = document.querySelector(`.post-menu-thread-${thread.cid}`);
menu.style.top = `calc(${rect.top}px + 17px)`;
menu.style.top = `calc(${rect.top + window.scrollY}px - 258px)`;
menu.style.left = `${rect.left}px`;
setRotatedStates(prevState => ({