Skip to content

Commit

Permalink
Merge pull request #10782 from akolson/hidden-filters
Browse files Browse the repository at this point in the history
Fixes hidden search elements in search panel on scroll
  • Loading branch information
akolson authored Jun 7, 2023
2 parents 7181e18 + fc5abcd commit 03af494
Showing 1 changed file with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
backgroundColor: $themeTokens.surface,
width: width,
}"
:class="position === 'embedded' ? 'side-panel' : ''"
:class="position === 'embedded' ? 'side-panel' : 'drawer-panel'"
>
<div v-if="topics && topics.length && topicsListDisplayed">
<div
Expand Down Expand Up @@ -94,7 +94,7 @@
/>
<div
v-if="Object.keys(availableResourcesNeeded).length"
class="section show-resources"
class="section"
>
<h2 class="title">
{{ coreString('showResources') }}
Expand Down Expand Up @@ -351,17 +351,30 @@

<style lang="scss" scoped>
.drawer-panel {
padding-bottom: 60px;
}
.side-panel {
position: fixed;
top: 60px;
left: 0;
height: 100%;
padding: 24px;
padding: 24px 24px 0;
overflow-y: scroll;
font-size: 14px;
box-shadow: 0 3px 3px 0 #00000040;
}
/*
* Work around for https://bugzilla.mozilla.org/show_bug.cgi?id=1417667
*/
.side-panel::after {
display: block;
padding-bottom: 70px;
content: '';
}
.side-panel-folder-link {
margin-top: 12px;
margin-bottom: 12px;
Expand All @@ -375,10 +388,6 @@
margin-top: 40px;
}
.show-resources {
margin-bottom: 60px;
}
.card-grid {
margin-top: 40px;
margin-left: 20px;
Expand Down

0 comments on commit 03af494

Please sign in to comment.