-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Add "copy branch name" (icon) on dropdown branch selector #25120
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
Comments
Yes, seems useful to have. In the dropdown, the icon should show only on hover like the current RSS button does. |
I don't think dropdown is a good place to do that but branches and tags should be better places. |
This is the way it is done in Bitbucket and i can say it is much easier to do, then go into "brunch" menu |
I can take it forward. Assign me. |
There are some observation in different platforms like Github, Gitlab, Bitbucket and bunch of more platform. As a UX prespective for tags we don't need copy option. By above observation I am suggsting the following UI changes, I know they might not align with UX point of way.But they are simplest to make quick. Code changes in files:- <button class="btn interact-bg gt-p-3" data-clipboard-text="{{.Name}}" data-tooltip-content="{{$.locale.Tr "repo.branch.copy_branch_name"}}">{{svg "octicon-copy"}}</button> Translations:- [repo]
branch.copy_branch_name = Copy Branch Name @silverwind @delvh |
@puni9869 seems good there as we should have enough space, but please test with long branch names to be sure. Otherwise, I'm happy to accept a PR for that. |
yes, looks good. There is plenty of space for more buttons with such ellipsis, so we can add it. |
No, I did not mean that. Just go with your original suggestion. I was just worrying that the extra button may cause issues with the table layout, but it doesn't. |
Cool, Pr is coming ASAP. Thanks a ton for immediate support. |
Adding branch-name copy to clipboard and button in branches screen Replaces #25569 Fixes #25120 New mocks: <img width="876" alt="Screenshot 2023-06-30 at 12 01 41 AM" src="https://github.com/go-gitea/gitea/assets/80308335/a34ab00f-5625-4529-ba17-f2bf7af58e2a"> <img width="822" alt="Screenshot 2023-06-30 at 12 03 59 AM" src="https://github.com/go-gitea/gitea/assets/80308335/3a32dffc-52cd-49e1-a437-6d11d58d0939"> <img width="476" alt="image" src="https://github.com/go-gitea/gitea/assets/80308335/85e8f361-5cb7-45d4-aced-ad2523d54ab0">
Feature Description
I want to have ability to easy copy branch name with dropdown menu. Now i can only do this from URL link after selecting the necessary branch
I expect to add this copy button as on the attached mock.
Also, add a context menu "copy branch name" when you click on ... button (button not yet available/implemented)
Screenshots
The text was updated successfully, but these errors were encountered: