Add fallback icons for apps on RS app dashboard
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Râu Cao 2024-01-29 18:32:29 +02:00
parent f8da034e66
commit 5a23d523a8
Signed by: raucao
GPG Key ID: 37036C356E56CC51

View File

@ -1,6 +1,12 @@
<div class="flex items-center gap-4">
<div class="h-16 w-16 flex-none">
<% if @web_app.icon.attached? %>
<%= image_tag s3_image_url(@web_app.icon), class: "h-full w-full" %>
<% elsif @web_app.apple_touch_icon.attached? %>
<%= image_tag s3_image_url(@web_app.apple_touch_icon), class: "h-full w-full" %>
<% else %>
<%= render partial: "icons/remotestorage", locals: { custom_class: "h-full w-full p-0.5 text-gray-200" } %>
<% end %>
</div>
<div class="flex-grow">
<h4 class="mb-1 text-lg font-bold">