diff --git a/internal/webserver/embedded/views/actions.js.html b/internal/webserver/embedded/views/actions.js.html
index 7a1bea6..8547bad 100644
--- a/internal/webserver/embedded/views/actions.js.html
+++ b/internal/webserver/embedded/views/actions.js.html
@@ -44,8 +44,10 @@
function highlightToggle(slug, el, method) {
event.preventDefault();
- let highlightLinkParent = document.querySelector("#highlight");
- let dehighlightLinkParent = document.querySelector("#dehighlight");
+ let parent = el.closest(".actions")
+
+ let highlightLinkParent = parent.querySelector(".highlight");
+ let dehighlightLinkParent = parent.querySelector(".dehighlight");
fetch(
el.getAttribute("href"), {
method: method,
diff --git a/internal/webserver/embedded/views/document.html b/internal/webserver/embedded/views/document.html
index efc4c9d..a36fb6a 100644
--- a/internal/webserver/embedded/views/document.html
+++ b/internal/webserver/embedded/views/document.html
@@ -30,13 +30,13 @@
{{if and (.Session) (ne .Session.Name "")}}
-
+
{{t .Lang "Highlight"}}
-
+
diff --git a/internal/webserver/embedded/views/highlights.html b/internal/webserver/embedded/views/highlights.html
index 0a43dd5..82770cf 100644
--- a/internal/webserver/embedded/views/highlights.html
+++ b/internal/webserver/embedded/views/highlights.html
@@ -19,4 +19,3 @@ {{t .Lang "%s highlights" .Session.Name}}
{{template "partials/delete-modal" .}}
-
diff --git a/internal/webserver/embedded/views/partials/actions.html b/internal/webserver/embedded/views/partials/actions.html
index c225137..a8fa83e 100644
--- a/internal/webserver/embedded/views/partials/actions.html
+++ b/internal/webserver/embedded/views/partials/actions.html
@@ -23,7 +23,7 @@
{{if and (.Session) (ne .Session.Name "")}}
-
+
@@ -32,7 +32,7 @@
-
+