Skip to content

Fix methods alignment on mobile - #131417

Merged
bors merged 3 commits into
rust-lang:masterfrom
GuillaumeGomez:mobile-methods-left-margin
Oct 10, 2024
Merged

Fix methods alignment on mobile#131417
bors merged 3 commits into
rust-lang:masterfrom
GuillaumeGomez:mobile-methods-left-margin

Conversation

@GuillaumeGomez

Copy link
Copy Markdown
Member

I realized that on mobile, the methods are not aligned the same depending if they have documentation or not:

beforeafter
Screenshot from 2024-10-08 20-40-22image

r? @notriddle

@rustbotrustbot 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 Oct 8, 2024
@rustbot

Copy link
Copy Markdown
Collaborator

Some changes occurred in HTML/CSS/JS.

cc @GuillaumeGomez, @jsha


// Checking on desktop.
set-window-size: (900, 600)
assert-position: (".impl-items section.method", {"x": 245}, ALL)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of hard-coding the pixel position itself, can you just test that both sections have the same x position? These goml tests aren't always very maintainable, and I'd like to try to fix that.

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point! There is an easy way to fix it for this test.

@GuillaumeGomez
GuillaumeGomezforce-pushed the mobile-methods-left-margin branch from 4f24866 to 9e041faCompareOctober 8, 2024 19:28
@GuillaumeGomez

Copy link
Copy Markdown
MemberAuthor

Improved GUI test.

@notriddle

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Oct 8, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit 9e041fa has been approved by notriddle

It is now in the queue for this repository.

@borsbors 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 Oct 8, 2024
workingjubilee added a commit to workingjubilee/rustc that referenced this pull request Oct 9, 2024
…-margin, r=notriddle
Fix methods alignment on mobile
I realized that on mobile, the methods are not aligned the same depending if they have documentation or not:
| before | after |
|-|-|
| ![Screenshot from 2024-10-08 20-40-22](https://github.com/user-attachments/assets/d31ba5e1-cf84-431f-9b2b-9962bc5a0365) | ![image](https://github.com/user-attachments/assets/ffde2161-bfcb-4462-8c5b-88538e61b366) |
r? `@notriddle`
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 9, 2024
…kingjubilee
Rollup of 4 pull requests
Successful merges:
- rust-lang#129424 (Stabilize `Pin::as_deref_mut()`)
- rust-lang#131417 (Fix methods alignment on mobile)
- rust-lang#131424 (compiler: Stop reexporting enum-globs from `rustc_target::abi`)
- rust-lang#131426 (Fix quotation marks around debug line in `src/ci/run.sh`)
r? `@ghost`
`@rustbot` modify labels: rollup
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Oct 9, 2024
…-margin, r=notriddle
Fix methods alignment on mobile
I realized that on mobile, the methods are not aligned the same depending if they have documentation or not:
| before | after |
|-|-|
| ![Screenshot from 2024-10-08 20-40-22](https://github.com/user-attachments/assets/d31ba5e1-cf84-431f-9b2b-9962bc5a0365) | ![image](https://github.com/user-attachments/assets/ffde2161-bfcb-4462-8c5b-88538e61b366) |
r? ``@notriddle``
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 9, 2024
…iaskrgr
Rollup of 6 pull requests
Successful merges:
- rust-lang#129424 (Stabilize `Pin::as_deref_mut()`)
- rust-lang#131417 (Fix methods alignment on mobile)
- rust-lang#131424 (compiler: Stop reexporting enum-globs from `rustc_target::abi`)
- rust-lang#131426 (Fix quotation marks around debug line in `src/ci/run.sh`)
- rust-lang#131429 (Rename directive `needs-profiler-support` to `needs-profiler-runtime`)
- rust-lang#131435 (Ignore broken-pipe-no-ice on apple (specifically macOS) for now)
r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 9, 2024
…kingjubilee
Rollup of 4 pull requests
Successful merges:
- rust-lang#129424 (Stabilize `Pin::as_deref_mut()`)
- rust-lang#131417 (Fix methods alignment on mobile)
- rust-lang#131424 (compiler: Stop reexporting enum-globs from `rustc_target::abi`)
- rust-lang#131426 (Fix quotation marks around debug line in `src/ci/run.sh`)
r? `@ghost`
`@rustbot` modify labels: rollup
jieyouxu added a commit to jieyouxu/rust that referenced this pull request Oct 9, 2024
…-margin, r=notriddle
Fix methods alignment on mobile
I realized that on mobile, the methods are not aligned the same depending if they have documentation or not:
| before | after |
|-|-|
| ![Screenshot from 2024-10-08 20-40-22](https://github.com/user-attachments/assets/d31ba5e1-cf84-431f-9b2b-9962bc5a0365) | ![image](https://github.com/user-attachments/assets/ffde2161-bfcb-4462-8c5b-88538e61b366) |
r? ```@notriddle```
@jieyouxujieyouxu mentioned this pull request Oct 9, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 9, 2024
Rollup of 6 pull requests
Successful merges:
- rust-lang#131417 (Fix methods alignment on mobile)
- rust-lang#131420 (Dont ICE when encountering post-mono layout cycle error)
- rust-lang#131424 (compiler: Stop reexporting enum-globs from `rustc_target::abi`)
- rust-lang#131426 (Fix quotation marks around debug line in `src/ci/run.sh`)
- rust-lang#131429 (Rename directive `needs-profiler-support` to `needs-profiler-runtime`)
- rust-lang#131435 (Ignore broken-pipe-no-ice on apple (specifically macOS) for now)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors

bors commented Oct 9, 2024

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 9e041fa with merge aace1d5...

bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 9, 2024
…argin, r=notriddle
Fix methods alignment on mobile
I realized that on mobile, the methods are not aligned the same depending if they have documentation or not:
| before | after |
|-|-|
| ![Screenshot from 2024-10-08 20-40-22](https://github.com/user-attachments/assets/d31ba5e1-cf84-431f-9b2b-9962bc5a0365) | ![image](https://github.com/user-attachments/assets/ffde2161-bfcb-4462-8c5b-88538e61b366) |
r? `@notriddle`
@rust-log-analyzer

This comment has been minimized.

@bors

bors commented Oct 9, 2024

Copy link
Copy Markdown
Collaborator

💔 Test failed - checks-actions

@borsbors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Oct 9, 2024
@GuillaumeGomez
GuillaumeGomezforce-pushed the mobile-methods-left-margin branch from 9e041fa to 5e6033eCompareOctober 9, 2024 19:23
@GuillaumeGomez

Copy link
Copy Markdown
MemberAuthor

I'm very confused that these tests worked in the first CI and locally but not in infra checks. Dark magic. Just in case, I added some extra wait. Let's see if it works this time...

@bors r=notriddle

@bors

bors commented Oct 9, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit 5e6033e has been approved by notriddle

It is now in the queue for this repository.

@borsbors 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 Oct 9, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Oct 10, 2024
…iaskrgr
Rollup of 7 pull requests
Successful merges:
- rust-lang#123951 (Reserve guarded string literals (RFC 3593))
- rust-lang#130827 (Library: Rename "object safe" to "dyn compatible")
- rust-lang#131383 (Add docs about slicing slices at the ends)
- rust-lang#131403 (Fix needless_lifetimes in rustc_serialize)
- rust-lang#131417 (Fix methods alignment on mobile)
- rust-lang#131449 (Decouple WASIp2 sockets from WasiFd)
- rust-lang#131462 (Mention allocation errors for `open_buffered`)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 47344c3 into rust-lang:masterOct 10, 2024
@rustbotrustbot added this to the 1.83.0 milestone Oct 10, 2024
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Oct 10, 2024
Rollup merge of rust-lang#131417 - GuillaumeGomez:mobile-methods-left-margin, r=notriddle
Fix methods alignment on mobile
I realized that on mobile, the methods are not aligned the same depending if they have documentation or not:
| before | after |
|-|-|
| ![Screenshot from 2024-10-08 20-40-22](https://github.com/user-attachments/assets/d31ba5e1-cf84-431f-9b2b-9962bc5a0365) | ![image](https://github.com/user-attachments/assets/ffde2161-bfcb-4462-8c5b-88538e61b366) |
r? `@notriddle`
@GuillaumeGomez
GuillaumeGomez deleted the mobile-methods-left-margin branch October 10, 2024 19:38
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-rustdocRelevant 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

@GuillaumeGomez@rustbot@notriddle@bors@rust-log-analyzer