Skip to content

Commit

Permalink
Only give height to gallery-container on larger devices (#5205)
Browse files Browse the repository at this point in the history
Having height/overflow on the stacked/vertical orientation causes weird scrolling behaviour.
  • Loading branch information
WithoutPants authored Sep 3, 2024
1 parent a8a3b4c commit 7b064ac
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ui/v2.5/src/components/Galleries/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ $galleryTabWidth: 450px;

.gallery-container {
flex: 0 0 calc(100% - #{$galleryTabWidth} - 15px);
height: calc(100vh - 4rem);
max-width: calc(100% - #{$galleryTabWidth} - 15px);
overflow: auto;

&.expanded {
flex: 0 0 calc(100% - 15px);
Expand All @@ -180,11 +182,6 @@ $galleryTabWidth: 450px;
width: 100%;
}

.gallery-container {
height: calc(100vh - 4rem);
overflow: auto;
}

@media (min-width: 1200px), (max-width: 575px) {
.gallery-performers {
.performer-card {
Expand Down

0 comments on commit 7b064ac

Please sign in to comment.