-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Rearrange Clone Panel #23231
Rearrange Clone Panel #23231
Conversation
Keep note that there is a citation button in this menu (#19999) which makes less sense in such a popup. Maybe just remove the |
I'd prefer this to not use fomantic dropdown but tippy.js instead. Assign classnames function initCodeButton() {
const codeBtn = document.querySelector('.code-btn');
if (!codeBtn) return;
createTippy(codeBtn, {
content: document.querySelector('.code-popup'),
placement: 'bottom-end',
trigger: 'click',
maxWidth: 'none',
interactive: true,
hideOnClick: true,
});
} |
Oh, I overlooked this, I'll fix this ASAP |
Ok, thanks for the feedback |
You can clone https://try.gitea.io/silverwind/symlink-test which has a |
Some critique:
|
A good news, after refactoring the Clone Panel, all the code in clone_script.tmpl could be moved into a JS file. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Oh, and I forgot to mention you need to add a I think we should name the two elements |
Hmm, it shouldn't, but if you could rebase this, maybe I'll play with it :) Note that Less has been removed, so then change in |
Is this PR active? |
It still should be, but I unfortunately didn't have time to work on it througout the last month. Will try to do on the weekend. |
If there is any problem, feel free to ask, I might do some help because I also hope we can clean the clone_script.tmpl after the refactoring 😁 Thank you very much! |
stale? |
@a1012112796 I guess you can mark it as stale for now, I don't have the time to work on this atm, I'll update the files and the pr as soon as I find time for it. (Hopefully soon) |
Okay, so, I'm trying to work on it again, and I wanted to ask, if tippy.js is still the way to go. If yes, what do I have to do to use tippy.js on that page (I can't use |
This commit restores the state of the pull request from March 2023. The result looks different and still needs to be improved.
Also, should I wait for #27931 to be merged in? It seems like it has a bigger impact on the code there and looks like it's probably going to be merged in sooner, since my PR still has some issues that I need to figure out and I have very limited time to work on it. |
I think so. |
Rearrange the clone panel to use less horizontal space. The following changes have been made to achieve this:
Before:
After:
This pull requests aims to fix #23202