Skip to content

Commit 307a924

Browse files
committed
Tweak placement of diff file menu
1 parent 4e10adc commit 307a924

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)