From 5bb6accc2c105fb3554f64d264fcbf8a7e6edbb5 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Fri, 31 Jan 2025 17:24:00 -0600 Subject: [PATCH] Ensure long titles wrap, comment counts don't --- app/views/bubbles/list/_bubble.html.erb | 28 +++++++++++++------------ 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/app/views/bubbles/list/_bubble.html.erb b/app/views/bubbles/list/_bubble.html.erb index 16530e17f..576bff8ab 100644 --- a/app/views/bubbles/list/_bubble.html.erb +++ b/app/views/bubbles/list/_bubble.html.erb @@ -1,26 +1,28 @@
  • " style="--bubble-color: <%= bubble.color %>; <%= bubble_rotation(bubble) %>" data-controller="animation" data-animation-play-class="bubble--wobble" data-animation-play-on-load-value="true" data-action="mouseover->animation#play"> - <%= link_to bucket_bubble_path(bubble.bucket, bubble) do %> + <%= link_to bucket_bubble_path(bubble.bucket, bubble), class: "flex-item-no-shrink" do %>
    <% end %> -
    +
    -
    - <%= link_to bucket_bubble_path(bubble.bucket, bubble), class: "bubble__title-link" do %> - <%= bubble.title %> +
    + <%= link_to bucket_bubble_path(bubble.bucket, bubble), class: "bubble__title-link flex-item-grow max-width overflow-ellipsis" do %> + <%= bubble.title %> <% end %> <% if bubble.messages.many? %> - (<%= bubble.messages.count %>) + (<%= bubble.messages.count %>) <% end %> - <% bubble.assignees.each do |assignee| %> - <%= link_to bubbles_path(@filter.as_params.merge(assignee_ids: [ assignee.id ])), class: "btn avatar", style: "font-size: 0.4em;" do %> - <%= avatar_image_tag assignee, loading: :lazy %> + + <% bubble.assignees.each do |assignee| %> + <%= link_to bubbles_path(@filter.as_params.merge(assignee_ids: [ assignee.id ])), class: "btn avatar", style: "font-size: 0.4em;" do %> + <%= avatar_image_tag assignee, loading: :lazy %> + <% end %> <% end %> - <% end %> +
    @@ -33,9 +35,9 @@ <% end %>
    -
    - <%= "Added by #{bubble.creator.name} on" %> <%= local_datetime_tag bubble.created_at, style: :shortdate %> - <%= render "bubbles/tags", bubble: bubble %> +
    + <%= "Added by #{bubble.creator.name} on" %> <%= local_datetime_tag bubble.created_at, style: :shortdate %> + <%= render "bubbles/tags", bubble: bubble %>
  • \ No newline at end of file