Skip to content

Commit

Permalink
Add a rough speech bubble
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Oct 23, 2023
1 parent 7156b49 commit 824372f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions app/views/_tailwind/applications/_application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,16 @@
<% end %>
</p>
</div>
<%# TODO: Style comments count as per the design %>
<%# TODO: Make speech bubble the correct size %>
<%# TODO: Make it the right width at different numbers %>
<%# TODO: Make the triangle at the bottom on the left here %>
<% if application.visible_comments_count.positive? %>
<p class="text-2xl text-navy"><%= pluralize(application.visible_comments_count, "comment") %></p>
<div class="text-2xl text-navy">
<%= render Tailwind::SpeechBubbleComponent.new do %>
<%= application.visible_comments_count %>
<% end %>
<%= application.visible_comments_count == 1 ? "comment" : "comments" %>
</div>
<% end %>
</article>
<% end %>

0 comments on commit 824372f

Please sign in to comment.