File tree 4 files changed +12
-17
lines changed
4 files changed +12
-17
lines changed Original file line number Diff line number Diff line change 1
1
<div>
2
- <div class="diff-detail-box diff-box sticky gt-df gt-sb gt-ac ">
2
+ <div class="diff-detail-box diff-box">
3
3
<div class="gt-df gt-ac gt-fw">
4
4
{{if not .DiffNotAvailable}}
5
5
<button class="diff-toggle-file-tree-button gt-df gt-ac not-mobile" data-show-text="{{ctx.Locale.Tr "repo.diff.show_file_tree"}}" data-hide-text="{{ctx.Locale.Tr "repo.diff.hide_file_tree"}}">
Original file line number Diff line number Diff line change 1502
1502
}
1503
1503
1504
1504
.repository .diff-detail-box {
1505
+ display : flex;
1506
+ justify-content : space-between;
1507
+ align-items : center;
1508
+ position : sticky;
1509
+ top : 0 ;
1510
+ z-index : 8 ;
1505
1511
padding : 7px 0 ;
1512
+ height : 44px ; /* this height should match sticky-2nd-row */
1506
1513
background : var (--color-body );
1507
1514
}
1508
1515
1509
1516
@media (max-width : 991.98px ) {
1510
1517
.repository .diff-detail-box {
1511
1518
flex-direction : row;
1512
- align-items : flex-start;
1519
+ height : 77 px ; /* this height should match sticky-2nd-row */
1513
1520
}
1514
1521
}
1515
1522
1518
1525
flex-wrap : wrap;
1519
1526
}
1520
1527
}
1521
-
1522
- .repository .diff-detail-box .sticky {
1523
- position : sticky;
1524
- top : 0 ;
1525
- z-index : 8 ;
1526
- border-bottom : none;
1527
- padding-left : 5px ;
1528
- padding-right : 5px ;
1529
- margin-left : -4px ;
1530
- margin-right : -4px ;
1531
- }
1532
-
1533
1528
.repository .diff-detail-box .diff-detail-stats strong {
1534
1529
margin-left : 0.25rem ;
1535
1530
margin-right : 0.25rem ;
@@ -2830,7 +2825,7 @@ tbody.commit-list {
2830
2825
2831
2826
.ui .attached .header .diff-file-header .sticky-2nd-row {
2832
2827
position : sticky;
2833
- top : 47 px ; /* match .repository .diff-detail-box */
2828
+ top : 44 px ; /* match .repository .diff-detail-box */
2834
2829
z-index : 7 ;
2835
2830
}
2836
2831
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export default {
36
36
};
37
37
</script >
38
38
<template >
39
- <ol class =" diff-detail-box diff- stats gt-m-0" ref =" root" v-if =" store.fileListIsVisible" >
39
+ <ol class =" diff-stats gt-m-0" ref =" root" v-if =" store.fileListIsVisible" >
40
40
<li v-for =" file in store.files" :key =" file.NameHash" >
41
41
<div class =" gt-font-semibold gt-df gt-ac pull-right" >
42
42
<span v-if =" file.IsBin" class =" gt-ml-1 gt-mr-3" >{{ store.binaryFileMessage }}</span >
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ export default {
126
126
};
127
127
< / script>
128
128
< template>
129
- < div v- if = " store.fileTreeIsVisible" class = " gt-mr-3 gt-mt-3 diff-detail-box " >
129
+ < div v- if = " store.fileTreeIsVisible" class = " gt-mr-3" >
130
130
<!-- only render the tree if we' re visible. in many cases this is something that doesn' t change very often -->
131
131
< DiffFileTreeItem v- for = " item in fileTree" : key= " item.name" : item= " item" / >
132
132
< div v- if = " store.isIncomplete" class = " gt-pt-2" >
You can’t perform that action at this time.
0 commit comments