Skip to content

rustdoc: unstable feature warning wraps early on iPad #91283

Open
@jsha

Description

@jsha

Visiting https://doc.rust-lang.org/nightly/std/mem/union.MaybeUninit.html#method.assume_init_read on an iPad Pro results in the following:

PXL_20211126_050244055

The yellow box warning about an unstable feature is both too long and too short. If it were wider, it could accomodate all its text without wrapping. Given that it wraps, it shouldn't be so wide.

This reproduces on latest Chrome, Brave, and Safari on iPad, in landscape mode. Note that in landscape mode it looks fine. Also, the width of the yellow box in landscape mode is exactly the same size as when it's in portrait mode.

PXL_20211127_063806912

Reproduces on stable as well as nightly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-rustdoc-uiArea: Rustdoc UI (generated HTML)T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions