diff options
author | Giteabot <teabot@gitea.io> | 2023-06-10 21:50:39 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-11 09:50:39 +0800 |
commit | 18093d4c9a4daa857bb485f050abd69bc94ba3ce (patch) | |
tree | bd875b8633e0a00a6c22e9050ebbc993b1deb818 /web_src/js/features/repo-code.js | |
parent | de1d14590d671b2d83f3d3844f8e8a4abe8ed618 (diff) | |
download | gitea-18093d4c9a4daa857bb485f050abd69bc94ba3ce.tar.gz gitea-18093d4c9a4daa857bb485f050abd69bc94ba3ce.zip |
Fix mobile navbar and misc cleanups (#25134) (#25169)
Backport #25134 by @silverwind
- Fix and improve mobile navbar layout
- Apply all cleanups suggested in
https://github.com/go-gitea/gitea/pull/25111
- Make media query breakpoints match Fomantic's exactly
- Clean up whitespace in class on navbar items
Mobile navbar before and after:
<img width="745" alt="Screenshot 2023-06-08 at 08 40 56"
src="https://github.com/go-gitea/gitea/assets/115237/ca84b239-b10f-41db-8c06-dcf2b6dd9d28">
<img width="739" alt="Screenshot 2023-06-08 at 08 41 23"
src="https://github.com/go-gitea/gitea/assets/115237/09133c54-eb7e-4110-858c-ead23c3b7521">
Diffstat (limited to 'web_src/js/features/repo-code.js')
-rw-r--r-- | web_src/js/features/repo-code.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web_src/js/features/repo-code.js b/web_src/js/features/repo-code.js index 26d8e22472..6a01a8445b 100644 --- a/web_src/js/features/repo-code.js +++ b/web_src/js/features/repo-code.js @@ -108,10 +108,15 @@ function showLineButton() { createTippy(btn, { trigger: 'click', + hideOnClick: true, content: menu, placement: 'right-start', - role: 'menu', interactive: 'true', + onShow: (tippy) => { + tippy.popper.addEventListener('click', () => { + tippy.hide(); + }, {once: true}); + } }); } |