File tree 2 files changed +48
-8
lines changed
2 files changed +48
-8
lines changed Original file line number Diff line number Diff line change 18
18
{{end}}
19
19
20
20
{{range $.LatestCommitStatuses}}
21
- <div class="ui attached segment">
22
- <span>{{template "repo/commit_status" .}}</span>
23
- <span class="ui">{{.Context}} <span class="text grey">{{.Description}}</span></span>
24
- <div class="ui right">
25
- {{if $.is_context_required}}
26
- {{if (call $.is_context_required .Context)}}<div class="ui label">{{$.locale.Tr "repo.pulls.status_checks_requested"}}</div>{{end}}
27
- {{end}}
28
- <span class="ui">{{if .TargetURL}}<a href="{{.TargetURL}}">{{$.locale.Tr "repo.pulls.status_checks_details"}}</a>{{end}}</span>
21
+ <div class="ui attached segment pr-status">
22
+ {{template "repo/commit_status" .}}
23
+ <div class="status-context">
24
+ <span>{{.Context}} <span class="text grey">{{.Description}}</span></span>
25
+ <div class="ui status-details">
26
+ {{if $.is_context_required}}
27
+ {{if (call $.is_context_required .Context)}}<div class="ui label">{{$.locale.Tr "repo.pulls.status_checks_requested"}}</div>{{end}}
28
+ {{end}}
29
+ <span class="ui">{{if .TargetURL}}<a href="{{.TargetURL}}">{{$.locale.Tr "repo.pulls.status_checks_details"}}</a>{{end}}</span>
30
+ </div>
29
31
</div>
30
32
</div>
31
33
{{end}}
Original file line number Diff line number Diff line change @@ -3477,3 +3477,41 @@ td.blob-excerpt {
3477
3477
max-width : 165px ;
3478
3478
}
3479
3479
}
3480
+
3481
+ .pr-status {
3482
+ padding : 0 !important ; // To clear fomantic's padding on .ui.segment elements
3483
+ display : flex ;
3484
+ align-items : center ;
3485
+
3486
+ .commit-status {
3487
+ margin : 1em ;
3488
+ flex-shrink : 0 ;
3489
+ }
3490
+
3491
+ .status-context {
3492
+ display : flex ;
3493
+ justify-content : space-between ;
3494
+ width : 100% ;
3495
+
3496
+ > span {
3497
+ padding : 1em 0 ;
3498
+ }
3499
+ }
3500
+
3501
+ .status-details {
3502
+ display : flex ;
3503
+ padding-right : .5em ;
3504
+ align-items : center ;
3505
+ justify-content : flex-end ;
3506
+
3507
+ @media @mediaSm {
3508
+ flex-direction : column ;
3509
+ align-items : flex-end ;
3510
+ justify-content : center ;
3511
+ }
3512
+
3513
+ > span {
3514
+ padding-right : .5em ; // To match the alignment with the "required" label
3515
+ }
3516
+ }
3517
+ }
You can’t perform that action at this time.
0 commit comments