diff options
author | silverwind <me@silverwind.io> | 2025-07-08 23:44:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-09 00:44:14 +0300 |
commit | d3d357a4a4bfdd3a2ebd81021e5d62b1cf5cd59d (patch) | |
tree | ad1d4e8a8edd1c36c543237f2e3d9b67123f3a05 | |
parent | 4e10adc871363ccd099867563a06a55bb50b296a (diff) | |
download | gitea-d3d357a4a4bfdd3a2ebd81021e5d62b1cf5cd59d.tar.gz gitea-d3d357a4a4bfdd3a2ebd81021e5d62b1cf5cd59d.zip |
Tweak placement of diff file menu (#34999)
Small tweak for better visual placement. Before:
<img width="175" alt="Screenshot 2025-07-08 at 18 16 51"
src="https://github.com/user-attachments/assets/766cfc82-1382-4aaa-8e99-c254665a0480"
/>
After:
<img width="134" alt="Screenshot 2025-07-08 at 18 16 34"
src="https://github.com/user-attachments/assets/2653dfcc-29be-4922-a4de-3257db7b66fd"
/>
Placement matches the "..." button above.
-rw-r--r-- | web_src/js/features/repo-diff.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/web_src/js/features/repo-diff.ts b/web_src/js/features/repo-diff.ts index ad1da5c2fa..bde7ec0324 100644 --- a/web_src/js/features/repo-diff.ts +++ b/web_src/js/features/repo-diff.ts @@ -138,7 +138,14 @@ function initDiffHeaderPopup() { btn.setAttribute('data-header-popup-initialized', ''); const popup = btn.nextElementSibling; if (!popup?.matches('.tippy-target')) throw new Error('Popup element not found'); - createTippy(btn, {content: popup, theme: 'menu', placement: 'bottom', trigger: 'click', interactive: true, hideOnClick: true}); + createTippy(btn, { + content: popup, + theme: 'menu', + placement: 'bottom-end', + trigger: 'click', + interactive: true, + hideOnClick: true, + }); } } |