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

[BUG] Offcanvas text going outside container on mobile. #579

Closed
DogByteMarketing opened this issue Sep 20, 2023 · 1 comment
Closed

[BUG] Offcanvas text going outside container on mobile. #579

DogByteMarketing opened this issue Sep 20, 2023 · 1 comment
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@DogByteMarketing
Copy link

Describe the bug

It's happening on all depths and even occurs on the Bootscore website.

Steps to reproduce

  1. Go to https://bootscore.me on mobile
  2. Click the hamburger icon
  3. Expand one of the sections

Screenshots and Additional Info

image

Website link

https://bootscore.me

@DogByteMarketing DogByteMarketing added the bug Something isn't working label Sep 20, 2023
@crftwrk
Copy link
Member

crftwrk commented Sep 20, 2023

Your screen is very very tiny ;-)

Bootstrap uses

.dropdown-item {
  white-space: nowrap;
}

You can see this issue on Bootstrap's example page as well https://getbootstrap.com/docs/5.3/examples/navbars-offcanvas/.

  • Open an offcanvas
  • Open dev console and add a long text to a dropdown-item and shrink browser.

Because we are following straight Bootstrap, we will not fix this here. It's better to create an issue in Bootstrap, but honestly I don't see any chance that they will do changes in dropdown.

However, you can quickly fix this in your child's _bscore_custom.scss:

@include media-breakpoint-down(md) {
  .offcanvas .dropdown-menu .dropdown-item {
    white-space: normal;
  }
}

@crftwrk crftwrk added the wontfix This will not be worked on label Sep 20, 2023
@crftwrk crftwrk closed this as completed Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants