mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-10 15:35:03 +02:00
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.
This commit is contained in:
parent
4e10adc871
commit
d3d357a4a4
@ -138,7 +138,14 @@ function initDiffHeaderPopup() {
|
|||||||
btn.setAttribute('data-header-popup-initialized', '');
|
btn.setAttribute('data-header-popup-initialized', '');
|
||||||
const popup = btn.nextElementSibling;
|
const popup = btn.nextElementSibling;
|
||||||
if (!popup?.matches('.tippy-target')) throw new Error('Popup element not found');
|
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,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user