Remove sorting filter UI

This commit is contained in:
Jason Zimdars
2025-04-10 11:07:22 -05:00
parent 1387ad2581
commit 296ac0c8b5
5 changed files with 0 additions and 20 deletions
-1
View File
@@ -1 +0,0 @@
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m20 17h3l-4 4-4-4h3v-14h2zm-12-12c-3.86 0-7 3.13-7 7s3.13 7 7 7c3.86 0 7-3.13 7-7s-3.13-7-7-7m0 2.15c2.67 0 4.85 2.17 4.85 4.85s-2.17 4.85-4.85 4.85-4.85-2.17-4.85-4.85 2.17-4.85 4.85-4.85m-1 1.85v3.69l3.19 1.84.75-1.3-2.44-1.41v-2.82"/></svg>

Before

Width:  |  Height:  |  Size: 312 B

-1
View File
@@ -1 +0,0 @@
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m18 7h-3l4-4 4 4h-3v14h-2zm-10-2c-3.86 0-7 3.13-7 7s3.13 7 7 7c3.86 0 7-3.13 7-7s-3.13-7-7-7m0 2.15c2.67 0 4.85 2.17 4.85 4.85s-2.17 4.85-4.85 4.85-4.85-2.17-4.85-4.85 2.17-4.85 4.85-4.85m-1 1.85v3.69l3.19 1.84.75-1.3-2.44-1.41v-2.82"/></svg>

Before

Width:  |  Height:  |  Size: 311 B

-2
View File
@@ -61,8 +61,6 @@
.icon--rename { --svg: url("rename.svg "); }
.icon--settings { --svg: url("settings.svg "); }
.icon--share { --svg: url("share.svg "); }
.icon--sort-ascending { --svg: url("sort-ascending.svg "); }
.icon--sort-descending { --svg: url("sort-descending.svg "); }
.icon--star { --svg: url("star.svg "); }
.icon--tag { --svg: url("tag.svg "); }
.icon--thumb-up { --svg: url("thumb-up.svg "); }
-2
View File
@@ -18,8 +18,6 @@
<%= render "cards/index/collections_filter", filter: filter %>
</dialog>
</div>
<%= render "cards/index/sorting_options", filter: filter %>
</header>
<% if collection = filter.single_collection %>
@@ -1,14 +0,0 @@
<div class="card-sorting__filter flex-inline">
<%= form_with url: cards_path, method: :get do |form| %>
<% filter.as_params.except(:indexed_by).each do |key, value| %>
<%= filter_hidden_field_tag key, value %>
<% end %>
<%= form.hidden_field :indexed_by, value: filter.indexed_by == "oldest" ? "newest" : "oldest" %>
<button class="btn borderless txt-medium">
<%= icon_tag filter.indexed_by == "oldest" ? "sort-ascending" : "sort-descending", size: 24, aria: { hidden: true } %>
<span class="for-screen-reader">Sort by <%= filter.indexed_by == "oldest" ? "newest" : "oldest" %></span>
</button>
<% end %>
</div>