Explorar el Código

Fix artifacts menu shrinking at wrong places ( ͡° ͜ʖ ͡°)

ghorsington hace 5 años
padre
commit
580856a499
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/templates/project_view.html

+ 2 - 1
src/templates/project_view.html

@@ -93,9 +93,10 @@
         let artifacts = document.querySelectorAll("div.artifact-item");
         for (let artifact of artifacts) {
             let contents = artifact.querySelector(".artifact-contents");
+            let details = artifact.querySelector(".artifact-details");
             if (!contents || !(contents instanceof HTMLElement))
                 continue;
-            artifact.addEventListener("click", e => {
+            details.addEventListener("click", e => {
                 if(e.target instanceof HTMLElement && e.target.nodeName.toUpperCase() == "A")
                     return;
                 e.preventDefault();