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

br-container does not get the correct margin when max-width is used for container #3

Open
guyathomas opened this issue Jul 6, 2022 · 1 comment

Comments

@guyathomas
Copy link

Steps to repro

  • set max-w-prose class on the same element that has container
  • Then use br-container as a child
  • You will notice that the margin is not calculated correctly.
@guyathomas
Copy link
Author

guyathomas commented Jul 7, 2022

Found that document.documentElement.style.setProperty('--current-screen', 'calc(min(100%,65ch) + var(--container-padding) * 2 )') will set it correct.

I'll consider a good implementation - but the difficult part is that this can change on different pages depending on the container max width

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

1 participant