Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/assets/stylesheets/searchworks4/facets.css
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,7 @@ label[for="facet_option_stanford_only"] > a {
.blacklight-catalog:not(:has(.constraints .constraint)) #facet-pub_year_tisim .chart-wrapper {
display: none !important; /* important needed to override the inline style that chartjs inserts */
}

#offcanvas-facets {
--bs-offcanvas-height: 80%;
}
5 changes: 4 additions & 1 deletion app/views/catalog/_new_search.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
</button>

<div id="offcanvas-facets" class="offcanvas-md offcanvas-bottom offcanvas-sm-start">
<div class="offcanvas-body flex-column">
<div class="offcanvas-header pb-0">
<button type="button" class="btn-close" data-bs-toggle="offcanvas" data-bs-target="#offcanvas-facets" aria-label="Close"></button>
</div>
<div class="offcanvas-body pt-0 flex-column">
<%= render 'facet_header' %>
<%= render Facets::GroupComponent.new(id: 'top-filters', title: 'Top filters',
container_classes: 'facets top-filters sidenav mb-md-4',
Expand Down
5 changes: 4 additions & 1 deletion app/views/catalog/_search_results.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@
</button>

<div id="offcanvas-facets" class="offcanvas-md offcanvas-bottom offcanvas-sm-start">
<div class="offcanvas-body flex-column">
<div class="offcanvas-header pb-0">
<button type="button" class="btn-close" data-bs-toggle="offcanvas" data-bs-target="#offcanvas-facets" aria-label="Close"></button>
</div>
<div class="offcanvas-body pt-0 flex-column">
<%= render 'facet_header' %>
<%= render Facets::GroupComponent.new(id: 'top-filters', title: 'Top filters',
container_classes: 'facets top-filters sidenav mb-md-4',
Expand Down