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

navbar-collapse used with dropdown-toggle #41049

Open
3 tasks done
CJ-Pav opened this issue Nov 22, 2024 · 0 comments
Open
3 tasks done

navbar-collapse used with dropdown-toggle #41049

CJ-Pav opened this issue Nov 22, 2024 · 0 comments

Comments

@CJ-Pav
Copy link

CJ-Pav commented Nov 22, 2024

Prerequisites

Describe the issue

Using a drop down navbar item within a navbar collapse seems to break bootstraps styling. Specifically, the shrink to fit breaks, and expands to the full screen width (with some padding). I tested in 5 different screen sizes and found it looks fantastic on larger screens. The issue I am noticing really only impacts medium sized screens (tablets and small laptops). See the screenshots below. On a larger screen the dropdown box shrink wraps the button options within. On a medium sized screen, it blows up across the whole screen. This makes sense for phones, but on tablets over 60% of the screen width is wasted.

Large screens look great:
image-6
Medium screens not so much (looks fine on small using these same styles):
image-5

Reduced test cases

https://codepen.io/CJ-Pav/pen/mdNNPJy

What operating system(s) are you seeing the problem on?

Windows, macOS, Linux

What browser(s) are you seeing the problem on?

Chrome, Firefox

What version of Bootstrap are you using?

v5.2.3

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