Skip to content

Commit

Permalink
Merge pull request #4055 from wowsims/sidebar-alignment
Browse files Browse the repository at this point in the history
Make sidebar stats align to bottom when they don't use the entire view height
  • Loading branch information
kayla-glick authored Nov 21, 2023
2 parents 57593f3 + 5a1dc7b commit 991571e
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions ui/scss/core/sim_ui/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
@import "../components/sim_title_dropdown";

.sim-sidebar {
flex: 1;
display: flex;
flex-direction: column;
align-items: stretch;
Expand All @@ -18,7 +17,6 @@
padding-bottom: map.get($spacers, 3);
display: flex;
flex-direction: column;
flex-grow: 1;

&> *:not(:last-child) {
margin-bottom: map.get($spacers, 4);
Expand Down Expand Up @@ -71,6 +69,21 @@
}
}

@include media-breakpoint-up(md) {
.sim-sidebar {
// Allow the stats to align to the bottom of the viewport if the section is small enough to avoid scrolling
.sim-sidebar-content {
min-height: calc(100vh - $sim-header-height);

.sim-sidebar-footer {
flex: 1;
display: flex;
align-items: flex-end;
}
}
}
}

@include media-breakpoint-down(lg) {
.sim-sidebar {
.sim-sidebar-content {
Expand Down

0 comments on commit 991571e

Please sign in to comment.