Skip to content

Pages with code samples don't shrink properly in Firefox thus making the pages unreadable on mobile #1089

Description

@stowball

I use Firefox on Android as my main browser and every time I follow a link from Twitter to the React docs, I inevitably can't read them without then copying the link in to Chrome because body has overflow-x: hidden and the .gatsby-highlight code samples don't wrap like they do in other browsers.

An example, broken page is https://reactjs.org/docs/add-react-to-a-website.html

This issue can also be reproduced in desktop Firefox:
image

Personally, I don't think that code samples should wrap and they should have their own horizontal scroll, but I'll leave it up to you which you think is the best course of action. Regardless, I'd be happy to try and fix it, whichever solution you decide on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions