Files
fizzy/app/views/comments/_comment.html.erb
T
Jason Zimdars 7b2ecf5d1a Anchor to newly created comments
This doesn't actually work but I thought I'd leave it in since it's a reproducible case for: https://github.com/hotwired/turbo/issues/211
2024-08-19 14:16:32 -05:00

14 lines
481 B
Plaintext

<div class="comment flex align-start gap" id="<%= dom_id(comment) %>">
<div class="flex align-center gap full-width">
<span class="avatar fill-black txt-reversed flex-item-no-shrink"><strong><%= comment.creator.initials %></strong></span>
<header class="full-width flex align-center gap">
<strong><%= comment.creator.name %></strong>
</header>
</div>
<div class="comment__body txt-align-start">
<%= simple_format comment.body %>
</div>
</div>
<hr />