Anchor to comments from Activity

This commit is contained in:
Jason Zimdars
2025-02-10 15:53:02 -06:00
parent 9f2e1df9bf
commit 72b8a612d8
+2 -1
View File
@@ -1,6 +1,7 @@
<% bubble = event.summary.bubble %>
<% link = event.action == "commented" ? bucket_bubble_path(bubble.bucket, bubble, anchor: dom_id(event.comment)) : bucket_bubble_path(bubble.bucket, bubble) %>
<%= link_to bucket_bubble_path(bubble.bucket, bubble),
<%= link_to link,
class: "event panel shadow center center-block flex-inline align-start justify-start gap position-relative",
style: "--bubble-color: #{ bubble.color }; #{ bubble_rotation(bubble) }",
data: { controller: "animation",