File tree 3 files changed +4
-3
lines changed
3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1334,7 +1334,7 @@ td .commit-summary {
1334
1334
1335
1335
.repository .repository-summary .sub-menu .item {
1336
1336
flex : 1 ;
1337
- height : 33.6 px ; /* match search bar height, need to be improved in the future to use some consistent methods */
1337
+ height : 33 px ; /* match search bar height, need to be improved in the future to use some consistent methods */
1338
1338
line-height : var (--line-height-default );
1339
1339
display : flex;
1340
1340
align-items : center;
Original file line number Diff line number Diff line change 4
4
grid-template-columns : auto 1fr auto;
5
5
border : 1px solid var (--color-light-border );
6
6
border-radius : var (--border-radius );
7
- margin : 8 px 0 ;
7
+ margin : 10 px 0 ; /* match the "clone-panel-popup" margin to avoid "visual double-border" */
8
8
}
9
9
10
10
# repo-files-table .svg .octicon-file-directory-fill ,
Original file line number Diff line number Diff line change @@ -92,14 +92,15 @@ function initCloneSchemeUrlSelection(parent: Element) {
92
92
93
93
function initClonePanelButton ( btn : HTMLButtonElement ) {
94
94
const elPanel = btn . nextElementSibling ;
95
+ // "init" must be before the "createTippy" otherwise the "tippy-target" will be removed from the document
96
+ initCloneSchemeUrlSelection ( elPanel ) ;
95
97
createTippy ( btn , {
96
98
content : elPanel ,
97
99
trigger : 'click' ,
98
100
placement : 'bottom-end' ,
99
101
interactive : true ,
100
102
hideOnClick : true ,
101
103
} ) ;
102
- initCloneSchemeUrlSelection ( elPanel ) ;
103
104
}
104
105
105
106
export function initRepoCloneButtons ( ) {
You can’t perform that action at this time.
0 commit comments