File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 60
60
61
61
.tippy-box [data-theme = "box-with-header" ] .tippy-content {
62
62
background : var (--color-box-body );
63
+ border-radius : var (--border-radius );
63
64
padding : 0 ;
64
65
}
65
66
Original file line number Diff line number Diff line change @@ -3075,21 +3075,29 @@ tbody.commit-list {
3075
3075
}
3076
3076
3077
3077
.commit-status-header {
3078
- border : none !important ; /* reset the default ".ui.attached.header" styles, to use the outer border */
3079
- margin : 0 !important ;
3078
+ /* reset the default ".ui.attached.header" styles, to use the outer border */
3079
+ border : none !important ;
3080
+ /* add a bottom border to make sure the there is always a divider between the header and list when the list is scrolling */
3081
+ border-bottom : 1px solid var (--color-secondary ) !important ;
3082
+ /* use negative margin to avoid the newly added border conflict with the list's top border */
3083
+ margin : 0 0 -1px !important ;
3080
3084
}
3081
3085
3082
3086
.commit-status-list {
3083
- max-height : 195 px ; /* fit exactly 4 items */
3087
+ max-height : 240 px ; /* fit exactly 6 items, commit-status-item.height * 6 */
3084
3088
overflow-x : hidden;
3085
3089
transition : max-height .2s ;
3086
3090
}
3087
3091
3088
3092
.commit-status-item {
3089
- padding : 14px 10px !important ;
3093
+ height : 40px ;
3094
+ padding : 0 10px ;
3090
3095
display : flex;
3091
3096
gap : 8px ;
3092
3097
align-items : center;
3098
+ }
3099
+
3100
+ .commit-status-item + .commit-status-item {
3093
3101
border-top : 1px solid var (--color-secondary );
3094
3102
}
3095
3103
Original file line number Diff line number Diff line change @@ -4,9 +4,7 @@ export function initRepoPullRequestCommitStatus() {
4
4
const list = panel . querySelector ( '.commit-status-list' ) ;
5
5
btn . addEventListener ( 'click' , ( ) => {
6
6
list . style . maxHeight = list . style . maxHeight ? '' : '0px' ; // toggle
7
- list . style . overflow = 'hidden' ; // hide scrollbar when hiding
8
7
btn . textContent = btn . getAttribute ( list . style . maxHeight ? 'data-show-all' : 'data-hide-all' ) ;
9
8
} ) ;
10
- list . addEventListener ( 'animationend' , ( ) => list . style . overflow = '' ) ;
11
9
}
12
10
}
You can’t perform that action at this time.
0 commit comments