Skip to content

Commit 4f3c56f

Browse files
committed
Clone button tweaks
1 parent a0b3d9a commit 4f3c56f

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

web_src/css/modules/tippy.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
z-index: 1;
2929
}
3030

31+
.tippy-box[data-theme="default"] {
32+
box-shadow: 0 6px 18px var(--color-shadow);
33+
}
34+
3135
/* bare theme, no styling at all, except box-shadow */
3236
.tippy-box[data-theme="bare"] {
3337
border: none;

web_src/css/repo/clone.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424

2525
.clone-panel-tab .item.active {
26-
border-bottom: 3px solid var(--color-secondary);
26+
border-bottom: 3px solid var(--color-text);
2727
}
2828

2929
.clone-panel-tab + .divider {

web_src/js/features/repo-common.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ function initClonePanelButton(btn: HTMLButtonElement) {
9999
placement: 'bottom-end',
100100
interactive: true,
101101
hideOnClick: true,
102+
arrow: false,
103+
offset: [0, 6],
102104
});
103105
}
104106

web_src/js/modules/tippy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function createTippy(target: Element, opts: TippyOpts = {}): Instance {
4242
visibleInstances.add(instance);
4343
return onShow?.(instance);
4444
},
45-
arrow: arrow || (theme === 'bare' ? false : arrowSvg),
45+
arrow: arrow ?? (theme === 'bare' ? false : arrowSvg),
4646
// HTML role attribute, ideally the default role would be "popover" but it does not exist
4747
role: role || 'menu',
4848
// CSS theme, either "default", "tooltip", "menu", "box-with-header" or "bare"

0 commit comments

Comments
 (0)