mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-22 23:27:54 -05:00
Merge pull request #3136 from benjiwheeler/fix-add-to-studio-height
fix add-to-studio modal height, gradient interference
This commit is contained in:
commit
0ac7cc7ab0
2 changed files with 11 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue