Skip to content

Commit 14e05d2

Browse files
committed
Tweaking spacing on narrower screens for bottom elements
1 parent ddd2743 commit 14e05d2

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

app/assets/stylesheets/partials/_results.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,17 @@
178178
// Put the sidebar items side by side when space is available
179179
#results-sidebar {
180180
flex-direction: row;
181+
padding-bottom: 40px;
182+
gap: 12px;
183+
flex-basis: auto;
184+
185+
> div {
186+
padding-right: 24px;
187+
}
188+
}
189+
190+
#callout-wrapper {
191+
margin-bottom: 0;
181192
}
182193
}
183194

@@ -186,12 +197,12 @@
186197

187198
#results-sidebar {
188199
flex-direction: column;
200+
gap: 32px;
189201
}
190202

191203
}
192204
}
193205

194-
195206
}
196207

197208
/* Callouts below results */

app/views/search/results.html.erb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,9 @@
4747

4848
<% if @results.present? %>
4949
<%= render partial: "pagination" %>
50-
<%= render partial: 'shared/ask', locals: { display: 'view-md' } %>
5150
<% end %>
5251
<% end %>
5352

54-
<%= render partial: 'shared/ask', locals: { display: 'aside' } if @results.blank? %>
5553
</div>
5654

5755
<%= javascript_include_tag "filters" %>

0 commit comments

Comments
 (0)