Notifications need to be 3 lines (or at least al the same) for now

This commit is contained in:
Jason Zimdars
2025-02-04 14:49:15 -06:00
parent a0fb212002
commit 760f08c7e3
@@ -7,12 +7,14 @@
<div class="flex flex-column txt-tight-lines min-width flex-item-grow">
<strong class="overflow-ellipsis"><%= notification_title(notification) %></strong>
<% if notification.event.action == "commented" %>
<div class="txt-break overflow-line-clamp">
<%= strip_tags(notification.event.comment.body_html).truncate(200) %>
<div class="overflow-ellipsis">
<% if notification.event.action == "commented" %>
<%= "#{ strip_tags(notification.event.comment.body_html).blank? ? "#{ notification.event.creator.name } replied" : "#{ notification.event.creator.name }:" } #{ strip_tags(notification.event.comment.body_html).truncate(200) }" %>
<% else %>
<%= notification_body(notification) %>
<% end %>
</div>
<% end %>
<div class="overflow-ellipsis translucent"><%= notification_body(notification) %> · <%= notification.bubble.bucket.name %> · <%= local_datetime_tag(notification.created_at, style: :ago) %></div>
<div class="overflow-ellipsis translucent"><%= notification.bubble.bucket.name %> · <%= local_datetime_tag(notification.created_at, style: :ago) %></div>
</div>
<div class="notification__unread_indicator flex flex-column flex-item-justify-end">