Skip to content

Commit 3c34dd8

Browse files
committed
update person mention positioning
1 parent 7dab110 commit 3c34dd8

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
<a class="text-decoration-none me-2 <%= dom_class(person, :mention) %> <%= 'me' if person == current_person %>" href="<%= person_path(person) if person == current_person %>" id="<%= dom_id(person, :mention) %>">
1+
2+
<%# locals: (person:, flex_layout: 'flex-row', flex_align_items: 'left')%>
3+
4+
<div class="position-relative mention me-4 d-flex justify-content-between <%= flex_layout %> <%= "align-items-#{flex_align_items}" %> <%= dom_class(person, :mention) %> <%= 'me' if person == current_person %>" id="<%= dom_id(person, :mention) %>">
25
<%# Display avatar and name inline %>
3-
<%= profile_image_tag(person, class: 'mention', size: 25) %>
4-
<span class="identity-name"><%= person.name %></span>
5-
</a>
6+
<%= profile_image_tag(person, class: 'mention', size: 50) %>
7+
<a class="text-decoration-none identity-name stretched-link" href="<% policy(person).show? ? person_path(person) : '#' %>">
8+
<%= person.name %>
9+
</a>
10+
</div>

0 commit comments

Comments
 (0)