Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustdoc: simplify mobile item-table CSS #103855

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

notriddle
Copy link
Contributor

Using flexbox in column direction is needlessly complicated, since no special flex powers are being used here. Just use regular block layout.

This should result in no visible changes.

Using flexbox in column direction is needlessly complicated, since no
special flex powers are being used here. Just use regular block layout.

This should result in no visible changes.
@rustbot
Copy link
Collaborator

rustbot commented Nov 1, 2022

r? @jsha

(rustbot has picked a reviewer for you, use r? to override)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. labels Nov 1, 2022
@rustbot
Copy link
Collaborator

rustbot commented Nov 1, 2022

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez, @Folyd, @jsha

@GuillaumeGomez
Copy link
Member

When I checked locally, it's changing the display.

Before your changes:

Screenshot 2022-11-02 at 11 12 34

After your changes:

Screenshot 2022-11-02 at 11 12 10

It also mean that we should add a GUI test to ensure it's displayed like this.

@notriddle
Copy link
Contributor Author

@GuillaumeGomez

There already is one.

https://github.com/rust-lang/rust/blob/master/src/test/rustdoc-gui/label-next-to-symbol.goml#L41

Which browser are you using, and what screen size exactly?

@GuillaumeGomez
Copy link
Member

Strange. I used a width of 658px on chrome on macOS.

@notriddle
Copy link
Contributor Author

@GuillaumeGomez I don't have access to a Mac, and when I try to do it in Chrome on Linux, I don't experience the bug.

Can you check what the calculated style of the item-table, -row, and -left and -right are in the Developer Tools?

@GuillaumeGomez
Copy link
Member

Fixed the issue by... hard reloading the page and changing the style again. Sorry about that. Looks all good!

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Nov 2, 2022

📌 Commit 82c68ca has been approved by GuillaumeGomez

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 2, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 2, 2022
Rollup of 7 pull requests

Successful merges:

 - rust-lang#103275 (Update tinystr)
 - rust-lang#103703 (Gate some parser recovery behind the check)
 - rust-lang#103774 (Format `dyn Trait` better in `type_name` intrinsic)
 - rust-lang#103807 (Add tracking issue for `string_extend_from_within`)
 - rust-lang#103855 (rustdoc: simplify mobile item-table CSS)
 - rust-lang#103862 (Use `ObligationCtxt` in `fully_normalize`)
 - rust-lang#103864 (Reorder `walk_` functions in intravisit.rs)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit cd9173e into rust-lang:master Nov 2, 2022
@rustbot rustbot added this to the 1.67.0 milestone Nov 2, 2022
@notriddle notriddle deleted the notriddle/mobile-item-table branch November 2, 2022 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants