-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of #92861 - jsha:mobile-column-flex, r=GuillaumeGomez
Rustdoc mobile: put out-of-band info on its own line Before this, the item name and the stability, source link, and "collapse all docs" would compete for room on a single line, resulting in awkward wrapping behavior on mobile. This gives a separate line for that out-of-band information. It also removes the "copy path" icon on mobile to make a little more room. Demo: https://rustdoc.crud.net/jsha/mobile-column-flex/std/string/struct.String.html r? `@GuillaumeGomez`
- Loading branch information
Showing
3 changed files
with
43 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Test various properties of the mobile UI | ||
goto: file://|DOC_PATH|/staged_api/struct.Foo.html | ||
size: (400, 600) | ||
|
||
// The out-of-band info (source, stable version, collapse) should be below the | ||
// h1 when the screen gets narrow enough. | ||
assert-css: (".main-heading", { | ||
"display": "flex", | ||
"flex-direction": "column" | ||
}) | ||
|
||
// Note: We can't use assert-text here because the 'Since' is set by CSS and | ||
// is therefore not part of the DOM. | ||
assert-css: (".content .out-of-band .since::before", { "content": "\"Since \"" }) | ||
|
||
size: (1000, 1000) | ||
assert-css-false: (".content .out-of-band .since::before", { "content": "\"Since \"" }) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters