Skip to content

Commit d3d357a

Browse files
authored
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.
1 parent 4e10adc commit d3d357a

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

web_src/js/features/repo-diff.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,14 @@ function initDiffHeaderPopup() {
138138
btn.setAttribute('data-header-popup-initialized', '');
139139
const popup = btn.nextElementSibling;
140140
if (!popup?.matches('.tippy-target')) throw new Error('Popup element not found');
141-
createTippy(btn, {content: popup, theme: 'menu', placement: 'bottom', trigger: 'click', interactive: true, hideOnClick: true});
141+
createTippy(btn, {
142+
content: popup,
143+
theme: 'menu',
144+
placement: 'bottom-end',
145+
trigger: 'click',
146+
interactive: true,
147+
hideOnClick: true,
148+
});
142149
}
143150
}
144151

0 commit comments

Comments
 (0)