Skip to content

Conversation

@YorikHansen
Copy link

@YorikHansen YorikHansen commented May 29, 2025

This is a bugfix.

Resolves #3961

Proposed solution

The usage of media range syntax fixes this issue. According to Can I use, this syntax is baseline available since 2023.

Tradeoffs

This is not as backwards compatible as the old max-width. Alternatively one could use the same workaround as bootstrap and subtract only 0.02px. See the alternative implementation here.

Testing Done

(Note: due to a rounding error, my viewport has actually a width between 1023px and 1024px)

Size Without this fix With this fix
1022px Example navbar for a width of 1022px without this fix Example navbar for a width of 1022px with the fix applied
1023px Example navbar for a width of 1023px without this fix Example navbar for a width of 1023px with the fix applied
1024px Example navbar for a width of 1024px without this fix Example navbar for a width of 1024px with the fix applied

Changelog updated?

No.

YorikHansen added a commit to YorikHansen/bulma that referenced this pull request May 29, 2025
This is the alternative implementation as mentioned in the PR jgthms#3990.

Related issue: jgthms#3961
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

Successfully merging this pull request may close these issues.

Navbar has 1px gap where it's broken due to mixins.until subtracting 1px

1 participant