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

fix(manager): adjust app container on narrow devices to make room for sidebar #1495

Merged
merged 2 commits into from
Feb 2, 2024

Conversation

daniellacosse
Copy link
Contributor

@daniellacosse daniellacosse commented Feb 2, 2024

this is horrible, I feel like god told me to kill my own brother

the sidebar and the main page for whatever reason are on different layers. I would have to restructure the UI and (possibly) rip out some of the components we're using to do it properly (they should be in a flex layout on the same layer). for now, to unblock the release I am simply using a grotesque media query to make room for the sidebar when the app is narrow.

my guess is this behavior started when our dependencies were updated at some point

@daniellacosse daniellacosse requested a review from a team as a code owner February 2, 2024 00:07
@daniellacosse daniellacosse changed the title fix(manager): adjust app container margin below 886px fix(manager): adjust app container on narrow devices to make room for sidebar Feb 2, 2024
Copy link
Contributor

@sbruens sbruens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've seen worse lol.

@daniellacosse daniellacosse merged commit 639e1e2 into master Feb 2, 2024
32 checks passed
@fortuna
Copy link
Collaborator

fortuna commented Feb 2, 2024

I don't understand what the issue is. We use the off-the-shelf https://www.webcomponents.org/element/@polymer/app-layout/elements/app-drawer-layout. It has always worked. What changed?

Edit: Oh, I see your comment on dependencies. Not clear to me how that would affect it, Polymer is not updated.

@@ -372,6 +372,11 @@ export class AppRoot extends polymerElementWithLocalize {
#getConnectedDialog .buttons {
margin-top: -5px; /* undo spacing added after iframe */
}
@media (max-width: 887px) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems Material uses 840dp as the breakpoint: https://m3.material.io/foundations/layout/applying-layout/window-size-classes

Maybe we should follow that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Successfully merging this pull request may close these issues.

3 participants