Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In the first three
calc()
expressions,100vw
is less than1280px
(otherwise we'd be in thescreen(xl)
media query), somin(1280px, 100vw)
is just a complex way to say100vw
, and thuscalc((100vw - (min(1280px, 100vw) - 32px)) / 2 * -1)
is just a very complex way to say-16px
. I simplified them to the corresponding-mx-
classes, so that it's clear that they are the same numbers used in.section-x-inset-xl
.In the last
calc()
,100vw
is always more than1280px
(because of the media query), somin(1280px, 100vw)
is just a complex way of saying1280px
. I left1280px - 112px
which is hopefully more clear than just writing1068px
.Note that using
100vw
instead of1280px
in the last one would fix the bug reported in #944, but I'm assuming thatmin(1280px, 100vw)
is there for a reason so I cannot simply remove it.Edit: The second commit fixes #944, by using the page width excluding the vertical scrollbar rather than using the full page width to compute the sticky breadcrumb margin.