Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wonky sidebar when resizing #20

Open
justinabrahms opened this issue Jun 2, 2022 · 1 comment
Open

Wonky sidebar when resizing #20

justinabrahms opened this issue Jun 2, 2022 · 1 comment

Comments

@justinabrahms
Copy link

The left sidebar jiggles about when you reduce the window size. Video attached.

output.mp4
@agardnerIT
Copy link

agardnerIT commented Mar 23, 2023

This is caused by the CSS selector min-width. When "wide" or "full screen", min-width is set to 1200px with both widths being 16.66666667%

@media (min-width: 1200px)
.col-xl-2 {
flex: 0 0 16.66666667%;
max-width: 16.66666667%;
}

As you start to close the window, it jumps to max-width: 768px but the widths then are set to 25% which actually causes the menu to get wider.

@media (min-width: 768px)
.col-md-3 {
flex: 0 0 25%;
max-width: 25%;
}

I don't understand CSS well enough to understand why the "wide" version is targeted with .col-xl-2 but on resize to the "narrow" version, that class is ignored and it uses .col-md-3

For me, setting both to 16.66666667% solved this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants