Skip to content

Commit

Permalink
🧹 Add space between thumbnail and title
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkkwang committed Jan 2, 2024
1 parent a8d190b commit f802001
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</td>
<td>
<div class="media">
<%= link_to [main_app, document], "class" => "media-left", "aria-hidden" => "true" do %>
<%= link_to [main_app, document], "class" => "mr-2", "aria-hidden" => "true" do %>
<%= document_presenter(document)&.thumbnail&.thumbnail_tag(
{ class: "d-none d-md-block file_listing_thumbnail", alt: document.title_or_label }, { suppress_link: true }
) %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/hyrax/dashboard/works/_list_works.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</td>
<td>
<div class='media'>
<%= link_to [main_app, document], class: 'media-left' do %>
<%= link_to [main_app, document], class: 'mr-2' do %>
<%# OVERRIDE begin %>
<%= document_presenter(document)&.thumbnail&.thumbnail_tag(
{ class: 'd-none d-md-block file_listing_thumbnail', alt: block_for(name: 'default_work_image_text') || "#{document.title_or_label} #{t('hyrax.homepage.admin_sets.thumbnail')}" },
Expand Down
4 changes: 2 additions & 2 deletions app/views/hyrax/my/works/_list_works.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<td>
<div class='media'>
<%# OVERRIDE begin %>
<%= link_to [main_app, document], class: 'media-left' do %>
<%= render_thumbnail_tag document, { class: 'hidden-xs file_listing_thumbnail', alt: block_for(name: 'default_work_image_text') || "#{document.title_or_label} #{t('hyrax.homepage.admin_sets.thumbnail')}" }, { suppress_link: true } %>
<%= link_to [main_app, document], class: 'mr-2' do %>
<%= render_thumbnail_tag document, { class: 'd-none d-md-block file_listing_thumbnail', alt: block_for(name: 'default_work_image_text') || "#{document.title_or_label} #{t('hyrax.homepage.admin_sets.thumbnail')}" }, { suppress_link: true } %>
<% end %>
<%# OVERRIDE end %>

Expand Down

0 comments on commit f802001

Please sign in to comment.