The personal finance app for everyone (by everyone)
Ruby
feat: Add merchant logo in filter selection (#1037)
Alessio Cappa18816067865b
diff --git a/app/views/transactions/searches/filters/_merchant_filter.html.erb b/app/views/transactions/searches/filters/_merchant_filter.html.erbindex c7df8c0b2d..0c13150b11 100644--- a/app/views/transactions/searches/filters/_merchant_filter.html.erb+++ b/app/views/transactions/searches/filters/_merchant_filter.html.erb@@ -16,14 +16,21 @@merchant.name,nil %><%= form.label :merchants, value: merchant.name, class: "text-sm text-primary flex items-center gap-2" do %>- <%= render DS::FilledIcon.new(- variant: :text,- hex_color: merchant.color,- text: merchant.name,- size: "sm",- rounded: true- ) %>-+ <div class="hidden lg:flex">+ <% if merchant.logo_url.present? %>+ <%= image_tag Setting.transform_brand_fetch_url(merchant.logo_url),+ class: "w-6 h-6 rounded-full border border-secondary",+ loading: "lazy" %>+ <% else %>+ <%= render DS::FilledIcon.new(+ variant: :text,+ hex_color: merchant.color,+ text: merchant.name,+ size: "sm",+ rounded: true+ ) %>+ <% end %>+ </div><%= merchant.name %><% end %></div>