File tree Expand file tree Collapse file tree 4 files changed +12
-17
lines changed Expand file tree Collapse file tree 4 files changed +12
-17
lines changed Original file line number Diff line number Diff line change 11<div>
2- <div class="diff-detail-box diff-box sticky gt-df gt-sb gt-ac ">
2+ <div class="diff-detail-box diff-box">
33 <div class="gt-df gt-ac gt-fw">
44 {{if not .DiffNotAvailable}}
55 <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 15021502}
15031503
15041504.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 ;
15051511 padding : 7px 0 ;
1512+ height : 44px ; /* this height should match sticky-2nd-row */
15061513 background : var (--color-body );
15071514}
15081515
15091516@media (max-width : 991.98px ) {
15101517 .repository .diff-detail-box {
15111518 flex-direction : row;
1512- align-items : flex-start;
1519+ height : 77 px ; /* this height should match sticky-2nd-row */
15131520 }
15141521}
15151522
15181525 flex-wrap : wrap;
15191526 }
15201527}
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-
15331528.repository .diff-detail-box .diff-detail-stats strong {
15341529 margin-left : 0.25rem ;
15351530 margin-right : 0.25rem ;
@@ -2830,7 +2825,7 @@ tbody.commit-list {
28302825
28312826.ui .attached .header .diff-file-header .sticky-2nd-row {
28322827 position : sticky;
2833- top : 47 px ; /* match .repository .diff-detail-box */
2828+ top : 44 px ; /* match .repository .diff-detail-box */
28342829 z-index : 7 ;
28352830}
28362831
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export default {
3636};
3737 </script >
3838<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" >
4040 <li v-for =" file in store.files" :key =" file.NameHash" >
4141 <div class =" gt-font-semibold gt-df gt-ac pull-right" >
4242 <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 {
126126};
127127< / script>
128128< 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" >
130130 <!-- only render the tree if we' re visible. in many cases this is something that doesn' t change very often -->
131131 < DiffFileTreeItem v- for = " item in fileTree" : key= " item.name" : item= " item" / >
132132 < div v- if = " store.isIncomplete" class = " gt-pt-2" >
You can’t perform that action at this time.
0 commit comments