-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustdoc: make settings checkboxes always square #139282
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 settings checkboxes always square #139282
Conversation
r? @notriddle rustbot has assigned @notriddle. Use |
Some changes occurred in HTML/CSS/JS. cc @GuillaumeGomez, @jsha |
@bors r+ |
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#139080 (Experimental feature gate for `super let`) - rust-lang#139145 (slice: Remove some uses of unsafe in first/last chunk methods) - rust-lang#139149 (unstable book: document import_trait_associated_functions) - rust-lang#139273 (Apply requested API changes to `cell_update`) - rust-lang#139282 (rustdoc: make settings checkboxes always square) - rust-lang#139283 (Rustc dev guide subtree update) - rust-lang#139294 (Fix the `f16`/`f128` feature gates on integer literals) r? `@ghost` `@rustbot` modify labels: rollup
Looks good to me as well, thanks! Please add a GUI test too. :) @bors r- |
Ah, it's already in a rollup... |
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#139080 (Experimental feature gate for `super let`) - rust-lang#139145 (slice: Remove some uses of unsafe in first/last chunk methods) - rust-lang#139149 (unstable book: document import_trait_associated_functions) - rust-lang#139273 (Apply requested API changes to `cell_update`) - rust-lang#139282 (rustdoc: make settings checkboxes always square) - rust-lang#139283 (Rustc dev guide subtree update) - rust-lang#139294 (Fix the `f16`/`f128` feature gates on integer literals) r? `@ghost` `@rustbot` modify labels: rollup
@GuillaumeGomez how do i add a gui test for layout properties? i don't think we have a guide for writing gui tests, do we? |
There is a
And that's it! To run the GUI tests, use |
Rollup merge of rust-lang#139282 - lolbinarycat:rustdoc-settings-checkbox-noshrink, r=notriddle rustdoc: make settings checkboxes always square Previously, checkboxes would flex horizontally on small screens:  this simple css tweak fixes this.
@@ -1446,6 +1446,9 @@ so that we can apply CSS-filters to change the arrow color in themes */ | |||
align-items: center; | |||
cursor: pointer; | |||
} | |||
.setting-check input { | |||
flex-shrink: 0, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah right, it was invalid CSS: it's supposed to be a colon and not a comma. Hence why it's important to add GUI test.
…iaskrgr Rollup of 7 pull requests Successful merges: - rust-lang#139080 (Experimental feature gate for `super let`) - rust-lang#139145 (slice: Remove some uses of unsafe in first/last chunk methods) - rust-lang#139149 (unstable book: document import_trait_associated_functions) - rust-lang#139273 (Apply requested API changes to `cell_update`) - rust-lang#139282 (rustdoc: make settings checkboxes always square) - rust-lang#139283 (Rustc dev guide subtree update) - rust-lang#139294 (Fix the `f16`/`f128` feature gates on integer literals) r? `@ghost` `@rustbot` modify labels: rollup
…t, r=camelid Add missing regression GUI test Add missing GUI test for rust-lang#139282 (and also fixes the invalid CSS). cc `@lolbinarycat` r? `@notriddle`
Rollup merge of rust-lang#139488 - GuillaumeGomez:add-missing-gui-test, r=camelid Add missing regression GUI test Add missing GUI test for rust-lang#139282 (and also fixes the invalid CSS). cc `@lolbinarycat` r? `@notriddle`
Previously, checkboxes would flex horizontally on small screens:

this simple css tweak fixes this.