Skip to content

web/blog: long inline code makes posts scroll sideways at phone width #4609

Closed

Description

@bpamiri

On some blog posts, a long inline <code> span overflows the .prose column at phone width (around 390px). The whole page then scrolls sideways by about 26–30px.

This was isolated during the #4605 visual check: wide tables now scroll inside their own region and add nothing to the page width, but long inline code still pushes the page wide.

A likely fix is overflow-wrap: anywhere (or word-break: break-word) on .prose :not(pre) > code in web/packages/ui/src/styles/base.css. Fenced blocks (pre) should keep scrolling horizontally.

To do:

  • Add the wrap rule and check a few long-identifier posts at 390px: no page-level horizontal scroll, and code blocks unchanged.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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