Uh oh!
There was an error while loading. Please reload this page.
Unify search input and buttons size - #93113
Conversation
rust-highfive
commented
Jan 20, 2022
Some changes occurred in HTML/CSS/JS. |
jsha
commented
Jan 20, 2022
Thanks for working on this! Much improved but it still doesn't look quite right: ayu: dark: light: Also, doesn't necessarily have to be for this change, but: setting the width of the search bar with |
GuillaumeGomez
commented
Jan 20, 2022
That can be done in this PR as well, I don't mind.
The problem is the height or something else? (The border looks wrong on the |
jsha
commented
Jan 20, 2022
The height is maybe 2 pixels too short on top and bottom? And the border-radius looks still looks a little bigger on the buttons than on the search box. And yes, as you said, the border on the search box is wrong in the Note: I think if you pursue the cleanup I mentioned, it might make it easier to fix the height issue. You can set the containing element to the height you want, and make sure the search box and buttons all have height: 100%. |
GuillaumeGomez
commented
Jan 20, 2022
Oh indeed! Will do that then. :) |
5011e79 to
37eeedeComparejsha
commented
Jan 20, 2022
Thanks! Much improved. For some reason there is still a 1px difference in height (on both top and bottom) between the search-input and the buttons. I can reproduce on both Firefox and Chrome (latest). It's pretty mysterious because the browser tools say both items are exactly 34px tall, but the search input is clearly just a little bit taller (you can see by removing the margin-left from the help button, so they are adjacent to each other). I can only assume this is some baked-in browser weirdness specific to input fields? Or perhaps I'm missing something. This is really hacky, but putting this style on search-input fixed in for me locally: height:calc(100%-2px);
margin-top:1px;On a similar note: |
bors
commented
Jan 21, 2022
☔ The latest upstream changes (presumably #93119) made this pull request unmergeable. Please resolve the merge conflicts. |
GuillaumeGomez
commented
Jan 21, 2022
Ok, found it! It was the |
b57d430 to
c1c232cComparec1c232c to
f0525daCompareGuillaumeGomez
commented
Jan 21, 2022
And done! I updated the uploaded docs as well. It ended up being a nice cleanup. :) |
jsha
left a comment
There was a problem hiding this comment.
Excellent sleuthing! And indeed this wound up being a very nice cleanup.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jsha
commented
Jan 22, 2022
Looks good! Thanks for doing this cleanup. It looks great. @bors r+ rollup |
bors
commented
Jan 22, 2022
📌 Commit f0525da has been approved by |
Unify search input and buttons size Fixesrust-lang#93060. Here what it looks like:   You can test it [here](https://rustdoc.crud.net/imperio/unify-sizes/std/index.html). r? `@jsha`
…askrgr Rollup of 8 pull requests Successful merges: - rust-lang#90666 (Stabilize arc_new_cyclic) - rust-lang#91122 (impl Not for !) - rust-lang#93068 (Fix spacing for `·` between stability and source) - rust-lang#93103 (Tweak `expr.await` desugaring `Span`) - rust-lang#93113 (Unify search input and buttons size) - rust-lang#93168 (update uclibc instructions for new toolchain, add link from platforms doc) - rust-lang#93185 (rustdoc: Make some `pub` items crate-private) - rust-lang#93196 (Remove dead code from build_helper) Failed merges: - rust-lang#93188 (rustdoc: fix bump down typing search on Safari) r? `@ghost` `@rustbot` modify labels: rollup
camelid
commented
Jan 25, 2022
The new search box looks a bit cramped to me. In fact, I half-thought this might have been an accidental regression. |
GuillaumeGomez
commented
Jan 25, 2022
How much bigger (in height I suppose) would you want the search box to be? |
jsha
commented
Jan 25, 2022
Note that one of the issues flagged in #59840 was that the search input was visually bigger than the main heading. I think that makes sense - the main heading should be noticeably bigger than the search box. |
camelid
commented
Jan 25, 2022
It's not really height but padding that's the issue. |
GuillaumeGomez
commented
Jan 25, 2022
I see. How much padding do you think we should use then? |
camelid
commented
Jan 25, 2022
I don't have a concrete suggestion, other than "a bit more" ;) |
GuillaumeGomez
commented
Jan 25, 2022
Ok, I'll send a PR in the next days and you'll tell me then if it's good for you. 😆 |
…, r=jsha Add a bit more padding in search box As asked in rust-lang#93113 (comment), here is a bit more padding. You can check it [here](https://rustdoc.crud.net/imperio/search-input-padding/foo/index.html). r? `@camelid`




Fixes#93060.
Here what it looks like:
You can test it here.
r? @jsha