-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Unify search input and buttons size #93113
Conversation
Some changes occurred in HTML/CSS/JS. |
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 |
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 |
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%. |
Oh indeed! Will do that then. :) |
5011e79
to
37eeede
Compare
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: |
☔ The latest upstream changes (presumably #93119) made this pull request unmergeable. Please resolve the merge conflicts. |
Ok, found it! It was the |
b57d430
to
c1c232c
Compare
c1c232c
to
f0525da
Compare
And done! I updated the uploaded docs as well. It ended up being a nice cleanup. :) |
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.
Excellent sleuthing! And indeed this wound up being a very nice cleanup.
Looks good! Thanks for doing this cleanup. It looks great. @bors r+ rollup |
📌 Commit f0525da has been approved by |
Unify search input and buttons size Fixes rust-lang#93060. Here what it looks like: ![Screenshot from 2022-01-20 21-38-19](https://user-images.githubusercontent.com/3050060/150418571-fefd6538-b3ee-4dd2-b77b-77e96bcfa0ed.png) ![Screenshot from 2022-01-20 21-38-22](https://user-images.githubusercontent.com/3050060/150418570-53ba259b-9bd4-4084-8b43-d74a5752d712.png) 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
The new search box looks a bit cramped to me. In fact, I half-thought this might have been an accidental regression. |
How much bigger (in height I suppose) would you want the search box to be? |
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. |
It's not really height but padding that's the issue. |
I see. How much padding do you think we should use then? |
I don't have a concrete suggestion, other than "a bit more" ;) |
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