-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Add a button to copy the "use statement" #83721
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
Conversation
A change occurred in the Ayu theme. cc @Cldfire Some changes occurred in HTML/CSS/JS. Some changes occurred in HTML/CSS themes. |
@bors r+ |
📌 Commit 828179d has been approved by |
Rollup of 5 pull requests Successful merges: - rust-lang#83535 (Break when there is a mismatch in the type count) - rust-lang#83721 (Add a button to copy the "use statement") - rust-lang#83740 (Fix comment typo in once.rs) - rust-lang#83745 (Add my new email address to .mailmap) - rust-lang#83754 (Add test to ensure search tabs behaviour) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
I just noticed this button. The one issue with the UI as it is now is that it gets in the way of reading the heading text. Maybe a better placement would be next to the |
Next to the src seems too disconnected, it'd be hard to know what it's going to copy. Maybe the button can be made much less noticeable, removing the border and making it smaller? Maybe even fading the color? Especially on the |
Feel free to propose suggestions. I don't have a good "UI opinion" so all good for me. :) |
Fixes #50239
When clicking on the button, it'll add the elements prepended by "use " and will end with a ";". So in the images below, I now have in my clipboard
use std::fs::OpenOptions;
.A screenshot of the newly added button:
A screenshot after it was clicked:
r? @Nemo157