Skip to content

Commit 1a3ba24

Browse files
committed
[Team] Adjust heading margin and update link list display for better readability
1 parent 852bbc3 commit 1a3ba24

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

app/views/events/team.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
<%= render "organizer_position_invite/links/form", event: @event %>
178178
<%= render "organizer_position_invite/links/link_list", event: @event, invite_links: @invite_links %>
179179

180-
<h3 class="mt-4 mb-2">Email</h3>
180+
<h3 class="mt-10 mb-2">Email</h3>
181181
<%= render "organizer_position_invites/form", invite: OrganizerPositionInviteService::Create.new(event: @event).model %>
182182
</section>
183183
<% end %>

app/views/organizer_position_invite/links/_link_list.html.erb

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,21 @@
88
<span class="w-full flex gap-2 items-center align-middle">
99
<div class="flex flex-col">
1010
<%= link_to link_url(link), class: "gap-1 my-0 font-bold flex items-center" do %>
11-
<%= inline_icon "link", size: 24 %>
1211
<%= link.hashid %>
12+
<%= inline_icon "copy", size: 24 %>
1313
<% end %>
14-
<p class="my-0 text-sm flex items-center gap-1 text-muted">
15-
<%= link.created_at.strftime("%B %e, %Y") %> &bull;
16-
<%= user_mention link.creator %>&bull;
17-
Expires <%= distance_of_time_in_words(Time.now, link.expires_in.seconds.from_now) %>
14+
<p class="my-0 mt-1 text-sm flex items-center gap-1 text-muted">
15+
<%= user_mention link.creator %>
16+
<span class="tooltipped -ml-1.5" aria-label="Created <%= link.created_at.strftime("%B %e, %Y") %>">
17+
&bull; Expires <%= distance_of_time_in_words(Time.now, link.expires_in.seconds.from_now) %>
18+
</span>
1819
</p>
19-
<p class="my-0">Used <%= pluralize(link.requests.size, "times") %></p>
2020
</div>
2121
<div class="flex-grow"></div>
22-
<%= pop_icon_to "copy",
23-
link_url(link),
24-
class: "tooltipped",
25-
data: {
26-
clipboard_text: link_url(link),
27-
},
28-
"aria-label": "Copy link to clipboard" %>
22+
<div class="tooltipped flex items-center text-muted mr-2 cursor-pointer" aria-label="Used <%= pluralize(link.requests.size, "times") %>">
23+
<%= inline_icon "link", size: 24 %>
24+
<%= link.requests.size %>
25+
</div>
2926
<%= pop_icon_to "delete",
3027
deactivate_link_path(link),
3128
class: "error tooltipped",

0 commit comments

Comments
 (0)