From 4fd3c038040f81ccb44d263ab1386d870fa63dd7 Mon Sep 17 00:00:00 2001 From: glax Date: Fri, 26 May 2023 13:30:20 +0200 Subject: [PATCH] Styling --- Website/interaction.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Website/interaction.js b/Website/interaction.js index 61f4049..1848740 100644 --- a/Website/interaction.js +++ b/Website/interaction.js @@ -258,7 +258,7 @@ function ShowRunningTasks(event){ }); if(json.length > 0){ tagTaskPopup.style.display = "block"; - tagTaskPopup.style.left = `${event.client - 20}px`; + tagTaskPopup.style.left = `${tagTasksRunning.offsetLeft - 20}px`; } }); @@ -275,7 +275,7 @@ function ShowQueuedTasks(event){ }); if(json.length > 0){ tagTaskPopup.style.display = "block"; - tagTaskPopup.style.left = `${event.clientX - 20}px`; + tagTaskPopup.style.left = `${tagTasksQueued.offsetLeft- 20}px`; } }); } @@ -291,7 +291,7 @@ function ShowAllTasks(event){ }); if(json.length > 0){ tagTaskPopup.style.display = "block"; - tagTaskPopup.style.left = `${event.clientX - 20}px`; + tagTaskPopup.style.left = `${tagTasksTotal.offsetLeft - 20}px`; } }); }