Skip to content

Cheatsheet horizontal scrolling #40798

@diafestivo

Description

@diafestivo

Prerequisites

Describe the issue

Hello,

In the "Cheatsheet" example, there seems to be some padding that causes horizontal scrolling on mobile resolutions.

It might seem like a minor issue, but it can be uncomfortable for many users.

Thank you, and congratulations on your great work.

Reduced test cases

The issue seems to be caused by content overflowing the width of the screen on mobile resolutions. A potential fix is to add the following CSS rule to prevent horizontal scrolling:

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
}

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

macOS

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

Chrome

What version of Bootstrap are you using?

5.3.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions