Skip to content

rustdoc: wrap "source" link to new line on narrow screens #93477

Open
@jsha

Description

@jsha

Following up #92861, where we let the out-of-band info (1.0.0 · source · [-]) move to a new line on narrow screens, we should give the same treatment to the individual source links next to methods and impl blocks. Note this will require a bit of a change in the DOM, to put the source links after the headings. Like the previous PR, we should set flex-wrap, so they can wrap on an individual basis as needed, plus a flex-direction: column in the mobile settings, so past a certain narrowness they always get wrapped.

Metadata

Metadata

Assignees

Labels

A-rustdoc-uiArea: Rustdoc UI (generated HTML)C-enhancementCategory: An issue proposing an enhancement or a PR with one.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