Remove redundant flex-grow class from popup__items

This commit is contained in:
Andy Smith
2025-07-21 13:35:24 -05:00
parent 1e62ae8c94
commit d3db752f39
9 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
<% @collection.users.active.alphabetically.each do |user| %>
<li class="popup__group flex align-center full-width" data-filter-target="item" data-navigable-list-target="item">
<%= button_to card_assignments_path(@card, params: { assignee_id: user.id }), method: :post,
class: "popup__item btn flex-item-grow full-width unpad-inline",
class: "popup__item btn full-width unpad-inline",
form_class: "max-width flex-item-grow" do %>
<span class="overflow-ellipsis flex-item-grow"><%= user.name %></span>
<%= icon_tag "check", size: 18, class: "checked flex-item-no-shrink flex-item-justify-end", style: "--icon-size: 1em" if @card.assignees.include?(user) %>
@@ -23,7 +23,7 @@
<% Current.user.collections.alphabetically.each do |collection| %>
<li class="popup__group flex align-center full-width" data-filter-target="item" data-navigable-list-target="item">
<%= button_to card_collection_path(card, params: { collection_id: collection.id }), method: :patch,
class: "popup__item btn flex-item-grow full-width unpad-inline",
class: "popup__item btn full-width unpad-inline",
form_class: "max-width flex-item-grow" do %>
<span class="overflow-ellipsis flex-item-grow"><%= collection.name %></span>
<%= icon_tag "check", size: 18, class: "checked flex-item-no-shrink flex-item-justify-end", style: "--icon-size: 1em" if card.collection == collection %>
@@ -6,7 +6,7 @@
<% if Current.user.collections.one? %>
<%= link_to cards_path(filter.as_params.except(:collection_ids)), class: "popup__group flex align-center", data: { filter_target: "item", navigable_list_target: "item" } do %>
<%= tag.div class: "popup__item btn flex-item-grow" do %>
<%= tag.div class: "popup__item btn" do %>
<span class="overflow-ellipsis"><%= Current.user.collections.first.name %></span>
<span class="txt-ink translucent flex-item-no-shrink flex-item-justify-end"><span class="txt-x-small txt-uppercase">GO TO</span> </span>
<% end %>
@@ -21,7 +21,7 @@
</span>
<%= icon_tag "check", size: 18, class: "checked" %>
</label>
<%= tag.div class: "popup__item btn flex-item-grow" do %>
<%= tag.div class: "popup__item btn" do %>
<span class="overflow-ellipsis">All collections</span>
<span class="txt-ink translucent flex-item-no-shrink flex-item-justify-end"><span class="txt-x-small txt-uppercase">GO TO</span> </span>
<% end %>
@@ -42,7 +42,7 @@
<%= icon_tag "check", size: 18, class: "checked" %>
</label>
<%= link_to cards_path(collection_ids: [ collection ]), class: "popup__item btn flex-item-grow" do %>
<%= link_to cards_path(collection_ids: [ collection ]), class: "popup__item btn" do %>
<span class="overflow-ellipsis"><%= collection.name %></span>
<span class="translucent flex-item-no-shrink flex-item-justify-end"> </span>
<% end %>
+3 -3
View File
@@ -3,7 +3,7 @@
data: { controller: "form" } do |form| %>
<% if Current.user.collections.one? %>
<%= link_to cards_path, class: "popup__group flex align-center", data: { filter_target: "item", navigable_list_target: "item" } do %>
<%= tag.div class: "popup__item btn flex-item-grow" do %>
<%= tag.div class: "popup__item btn" do %>
<span class="overflow-ellipsis"><%= Current.user.collections.first.name %></span>
<span class="txt-ink translucent flex-item-no-shrink flex-item-justify-end"><span class="txt-x-small txt-uppercase">GO TO</span> </span>
<% end %>
@@ -18,7 +18,7 @@
</span>
<%= icon_tag "check", size: 18, class: "checked" %>
</label>
<%= tag.div class: "popup__item btn flex-item-grow" do %>
<%= tag.div class: "popup__item btn" do %>
<span class="overflow-ellipsis">All collections</span>
<span class="txt-ink translucent flex-item-no-shrink flex-item-justify-end"><span class="txt-x-small txt-uppercase">GO TO</span> </span>
<% end %>
@@ -39,7 +39,7 @@
<%= icon_tag "check", size: 18, class: "checked" %>
</label>
<%= link_to cards_path(collection_ids: [ collection ]), class: "popup__item btn flex-item-grow" do %>
<%= link_to cards_path(collection_ids: [ collection ]), class: "popup__item btn" do %>
<span class="overflow-ellipsis"><%= collection.name %></span>
<span class="translucent flex-item-no-shrink flex-item-justify-end"> </span>
<% end %>
+1 -1
View File
@@ -17,7 +17,7 @@
<% @tags.each do |tag| %>
<li class="popup__group flex align-center full-width" data-filter-target="item" data-navigable-list-target="item">
<%= button_to card_taggings_path(@card, params: { tag_title: tag.title }), method: :post,
class: "popup__item btn flex-item-grow full-width unpad-inline",
class: "popup__item btn full-width unpad-inline",
form_class: "max-width flex-item-grow" do %>
<span class="overflow-ellipsis flex-item-grow"><%= tag.hashtag %></span>
<%= icon_tag "check", size: 18, class: "checked flex-item-no-shrink flex-item-justify-end", style: "--icon-size: 1em" if @card.tagged_with?(tag) %>
@@ -1,6 +1,6 @@
<% if Current.user.collections.one? %>
<%= link_to cards_path(filter.as_params.except(:collection_ids)), class: "popup__group flex align-center", data: { filter_target: "item", navigable_list_target: "item" } do %>
<%= tag.div class: "popup__item btn flex-item-grow" do %>
<%= tag.div class: "popup__item btn" do %>
<span class="overflow-ellipsis"><%= Current.user.collections.first.name %></span>
<span class="txt-ink translucent flex-item-no-shrink flex-item-justify-end"><span class="txt-x-small txt-uppercase">GO TO</span> </span>
<% end %>
@@ -15,7 +15,7 @@
<%= icon_tag "check", size: 18, class: "checked" %>
<% end %>
<%= link_to cards_path(filter.as_params.except(:collection_ids)), class: "popup__item btn flex-item-grow" do %>
<%= link_to cards_path(filter.as_params.except(:collection_ids)), class: "popup__item btn" do %>
<span class="overflow-ellipsis">All collections</span>
<span class="txt-ink translucent flex-item-no-shrink flex-item-justify-end"><span class="txt-x-small txt-uppercase">GO TO</span> </span>
<% end %>
@@ -12,7 +12,7 @@
<%= icon_tag "check", size: 18, class: "checked flex-item-justify-end" %>
</label>
<%= link_to cards_path(collection_ids: [ collection ]), class: "popup__item btn flex-item-grow" do %>
<%= link_to cards_path(collection_ids: [ collection ]), class: "popup__item btn" do %>
<span class="overflow-ellipsis"><%= collection.name %></span>
<span class="translucent flex-item-no-shrink flex-item-justify-end"> </span>
<% end %>
+1 -1
View File
@@ -1,6 +1,6 @@
<li class="popup__group flex align-center" data-filter-target="item" data-navigable-list-target="item">
<%= icon_tag "tag" %>
<%= link_to cards_path(tag_ids: [ tag ]), class: "popup__item btn flex-item-grow" do %>
<%= link_to cards_path(tag_ids: [ tag ]), class: "popup__item btn" do %>
<span class="overflow-ellipsis"><%= tag.title %> (<%= tag.cards_count %>)</span>
<span class="translucent flex-item-no-shrink flex-item-justify-end"> </span>
<% end %>
+1 -1
View File
@@ -1,6 +1,6 @@
<li class="popup__group flex align-center" data-filter-target="item" data-navigable-list-target="item">
<%= icon_tag "person" %>
<%= link_to user, class: "popup__item btn flex-item-grow" do %>
<%= link_to user, class: "popup__item btn" do %>
<span class="overflow-ellipsis"><%= user.name %></span>
<span class="translucent flex-item-no-shrink flex-item-justify-end"> </span>
<% end %>