-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
[rustdoc] Make popover menus content scrollable on mobile devices #151216
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] Make popover menus content scrollable on mobile devices #151216
Conversation
|
Some changes occurred in HTML/CSS/JS. |
This comment has been minimized.
This comment has been minimized.
|
Just realized the little "arrow" at the top disappeared. Fixing that. |
This comment has been minimized.
This comment has been minimized.
b227e14 to
9b340eb
Compare
This comment has been minimized.
This comment has been minimized.
|
Fixed it, I moved the |
|
First of all, seems pretty good, can't find any faults in the code, and everything seemed to work @bors r+ Second, manual testing of this change made be realize rustdoc's behavior in regard to changing window sizes has gotten a bit odd lately. First, there's actually 3 different states, the desktop layout, the mobile layout (with the topbar), and an "intermediate" layout with a sidebar, but with the settings and help buttons small in the top right corner, same position they are in when the topbar is around. Transitioning between desktop and intermediate layout with the settings or help menu open works fine, but resizing a window to go to the "mobile" layout forcibly closes these menus. |
…inarycat [rustdoc] Make popover menus content scrollable on mobile devices Fixes rust-lang#151209. This is what it looks like: <img width="468" height="601" alt="image" src="https://github.com/user-attachments/assets/39dcbfea-ca31-4875-947f-155b58ffa4bd" /> The only difference with the current display: <img width="468" height="601" alt="image" src="https://github.com/user-attachments/assets/b49c6100-3566-4f79-8343-1bf4fe32da78" /> is that we now see the bottom border (and that we can scroll the content too of course). I applied this change to both the settings and helps popover menus. r? @lolbinarycat
|
Failed in rollup? #151392 (comment) |
|
Commit 9b340eb has been unapproved. |
This comment has been minimized.
This comment has been minimized.
…<try> [rustdoc] Make popover menus content scrollable on mobile devices try-job: x86_64-gnu-tools
|
Hmm, looks like either a flaky test or a soft-conflict in the rollup. |
9b340eb to
76ea822
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
This comment has been minimized.
This comment has been minimized.
|
Seems like a rebase was needed, gonna check locally then. |
|
@bors r=lolbinarycat rollup |
Rollup of 7 pull requests Successful merges: - #151216 ([rustdoc] Make popover menus content scrollable on mobile devices) - #151373 (Fix an ICE on transmute goals with placeholders in `param_env`) - #151399 (Generate error delegation when delegation is not resolved) - #151406 (Use version 1.93.0 in `RELEASES.md` instead of 1.93) - #151410 (Fixes for LLVM 22 compatibility) - #151415 (chore: Remove redundant conversion) - #151418 (Avoid pulling in unicode when calling io::Error::kind) r? @ghost
Rollup merge of #151216 - scrollable-popover-content, r=lolbinarycat [rustdoc] Make popover menus content scrollable on mobile devices Fixes #151209. This is what it looks like: <img width="468" height="601" alt="image" src="https://github.com/user-attachments/assets/39dcbfea-ca31-4875-947f-155b58ffa4bd" /> The only difference with the current display: <img width="468" height="601" alt="image" src="https://github.com/user-attachments/assets/b49c6100-3566-4f79-8343-1bf4fe32da78" /> is that we now see the bottom border (and that we can scroll the content too of course). I applied this change to both the settings and helps popover menus. r? @lolbinarycat
Fixes #151209.
This is what it looks like:
The only difference with the current display:
is that we now see the bottom border (and that we can scroll the content too of course).
I applied this change to both the settings and helps popover menus.
r? @lolbinarycat