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

Improve sidebar styling to make its integration easier #64948

Merged
merged 1 commit into from
Oct 2, 2019

Conversation

GuillaumeGomez
Copy link
Member

Part of rust-lang/docs.rs#417

Setting the height was an error: forcing the element bottom to be at the bottom allows to change to top of the sidebar.

r? @Mark-Simulacrum

@Mark-Simulacrum
Copy link
Member

Could you post some screenshots or something?

@GuillaumeGomez
Copy link
Member Author

GuillaumeGomez commented Oct 1, 2019

It doesn't change the UI at all, that's point. However, by setting where is the bottom of the sidebar and removing its height, it prevents it from being bigger than the screen in the opposite of what you can see here.

That's what I tried (badly) to explain in the first comment. ;)

@Mark-Simulacrum
Copy link
Member

So presumably with this merged that page will no longer have hyper cut off at the bottom?

image

@GuillaumeGomez
Copy link
Member Author

Absolutely. Update your CSS with my changes on your page if you want to check it live. :)

@Mark-Simulacrum
Copy link
Member

That sounds like exactly what I wanted screenshots of. However, it looks like a correct and reasonable change based on just the CSS. So: @bors r+

@bors
Copy link
Contributor

bors commented Oct 2, 2019

📌 Commit 4aa526f has been approved by Mark-Simulacrum

@bors bors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Oct 2, 2019
Centril added a commit to Centril/rust that referenced this pull request Oct 2, 2019
…ing, r=Mark-Simulacrum

Improve sidebar styling to make its integration easier

Part of rust-lang/docs.rs#417

Setting the height was an error: forcing the element bottom to be at the bottom allows to change to top of the sidebar.

r? @Mark-Simulacrum
bors added a commit that referenced this pull request Oct 2, 2019
Rollup of 13 pull requests

Successful merges:

 - #64581 (Fix unreachable_code warnings for try{} block ok-wrapped expressions)
 - #64850 (Remove inlines from DepNode code)
 - #64914 (regression test for 64453 borrow check error.)
 - #64922 (Use PlaceBuilder to avoid a lot of slice -> vec -> slice convertions)
 - #64948 (Improve sidebar styling to make its integration easier)
 - #64961 (Make comment about dummy type a bit more clear)
 - #64967 (Don't mark borrows of zero-sized arrays as indirectly mutable)
 - #64973 (Fix typo while setting `compile-flags` in test)
 - #64980 (Enable support for `IndirectlyMutableLocals` in `rustc_peek` )
 - #64989 (Fix ICE #64964)
 - #64991 ([const-prop] Correctly handle locals that can't be propagated)
 - #64995 (Remove rustdoc warning)
 - #64997 (rustc book: nitpick SLP vectorization)

Failed merges:

r? @ghost
@bors bors merged commit 4aa526f into rust-lang:master Oct 2, 2019
@GuillaumeGomez
Copy link
Member Author

Oh I see what you mean. Well, the bug was specific to docs.rs so it didn't make sense to me to have a screenshot about a bug that doesn't impact rustdoc directly.

@GuillaumeGomez GuillaumeGomez deleted the improve-sidebar-styling branch October 3, 2019 07:55
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants