Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Responsive sidebar widths resize incorrectly #188

Open
mchong-teal opened this issue Jul 10, 2019 · 2 comments
Open

Responsive sidebar widths resize incorrectly #188

mchong-teal opened this issue Jul 10, 2019 · 2 comments

Comments

@mchong-teal
Copy link

mchong-teal commented Jul 10, 2019

When the width of the sidebar is set using a media query (e.g. width: 20vw or @media...), and the window is resized, the main non-sidebar content resizes incorrectly.

Edit: Issue occurs if style is set via 'styles' prop, or if sidebar content width is set.

@mchong-teal mchong-teal changed the title Setting sidebar width via style causes strange resize behaviour Responsive sidebar widths resize incorrectly Jul 10, 2019
@mchong-teal
Copy link
Author

Fixed it by conditionally setting content width based on a media query sizing (using the styles prop). I suppose if I were using breakpoints I would need to add a custom class and provide my own css?

@mchong-teal
Copy link
Author

^But doing this makes the slide out/in animations look real bad.

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

No branches or pull requests

1 participant