Merge pull request #3136 from benjiwheeler/fix-add-to-studio-height

fix add-to-studio modal height, gradient interference
This commit is contained in:
Benjamin Wheeler 2019-07-23 12:14:27 -04:00 committed by GitHub
commit 0ac7cc7ab0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 2 deletions

View file

@ -3,15 +3,17 @@
.mod-addToStudio {
min-height: 15rem;
max-height: calc(100% - 8rem);
max-height: calc(100% - 5rem);
/* Some value for height must be set for scrolling to work */
height: 100%;
height: 28rem;
overflow: hidden;
@media #{$small}, #{$small-height} {
overflow: hidden;
height: 100%;
max-height: 100%;
}
}
@ -71,6 +73,12 @@
min-height: 30rem;
*/
/* provides buffer at bottom of list, so that bottommost items
are not obscured by gradient overlay */
.studio-list-footer-spacer {
height: 1.5rem;
}
.studio-list-bottom-gradient {
position: absolute;
right: 1rem;

View file

@ -56,6 +56,7 @@ const AddToStudioModalPresentation = ({
<div className="studio-list-container">
{studioButtons}
</div>
<div className="studio-list-footer-spacer" />
<div className="studio-list-bottom-gradient" />
</div>
</div>