Skip to content

Commit

Permalink
Migrate to new padding and margins classes
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Oct 16, 2023
1 parent 37df3fd commit c669c85
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/exhibitPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
var wrapper = $('<div class="media"></div>');
var image = $(`
<a href="${exhibitUrl}" tabindex="-1" aria-hidden="true">
<img alt="" src="" class="mr-3" />
<img alt="" src="" class="me-3" />
</a>
`
);
Expand Down
2 changes: 1 addition & 1 deletion app/assets/stylesheets/modules/subnavbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

.navbar-toggler {
font-size: 20px;
@extend .pl-0;
@extend .ps-0;
}

#search-subnavbar-collapse .navbar-nav {
Expand Down
2 changes: 1 addition & 1 deletion app/views/bookplates/_bookplate.html.erb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class='bookplate col-sm-12 col-md-6'>
<div class='media'>
<%= image_tag bookplate.thumbnail_url, alt: bookplate.text, class: 'mr-3' %>
<%= image_tag bookplate.thumbnail_url, alt: bookplate.text, class: 'me-3' %>
<div class='media-body'>
<p><%= link_to_bookplate_search(bookplate, class: 'media-heading') %></p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<% end %>
<% document.collection_members[0...3].each do |collection_member| %>
<div class="d-flex file-item">
<div class="mr-2 file-icon">
<div class="me-2 file-icon">
<%= render_resource_icon collection_member[collection_member.format_key] %>
</div>
<div class="file-title">
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_search_subnavbar.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
Menu
</button>
<div class="collapse navbar-collapse" id="search-subnavbar-collapse">
<ul class="nav navbar-nav mr-auto">
<ul class="nav navbar-nav me-auto">
<li class="dropdown search-subnavbar-about">
<a class="dropdown-toggle" data-bs-toggle="dropdown" href="#" id="searchNavbarTopMenu" aria-controls="libraryServicesMenu" aria-expanded="false">
Help</a>
Expand Down
4 changes: 2 additions & 2 deletions spec/features/bookplates_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
expect(page).to have_css('.bookplate', count: 2)

within(first('.bookplate')) do
expect(page).to have_css('img.mr-3')
expect(page).to have_css('img.me-3')
expect(page).to have_css('.media-body a', text: 'Susan and Ruth Sharp Fund')
end

within(all('.bookplate').last) do
expect(page).to have_css('img.mr-3')
expect(page).to have_css('img.me-3')
expect(page).to have_css('.media-body a', text: 'The Edgar Amos Boyles Centennial Book Fund')
end
end
Expand Down

0 comments on commit c669c85

Please sign in to comment.