Skip to content

Commit 400eff3

Browse files
committed
set offset in createTippy
1 parent 81b5af7 commit 400eff3

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

web_src/js/features/repo-common.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ function initClonePanelButton(btn: HTMLButtonElement) {
100100
interactive: true,
101101
hideOnClick: true,
102102
arrow: false,
103-
offset: [0, 6],
104103
});
105104
}
106105

web_src/js/modules/tippy.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export function createTippy(target: Element, opts: TippyOpts = {}): Instance {
4747
role: role || 'menu',
4848
// CSS theme, either "default", "tooltip", "menu", "box-with-header" or "bare"
4949
theme: theme || role || 'default',
50+
offset: [0, arrow ? 10 : 6],
5051
plugins: [followCursor],
5152
...other,
5253
} satisfies Partial<Props>);

0 commit comments

Comments
 (0)