File tree 4 files changed +9
-40
lines changed
4 files changed +9
-40
lines changed Original file line number Diff line number Diff line change 15
15
16
16
{{$commitLink:= printf "%s/commit/%s" $.comment.Issue.PullRequest.BaseRepo.Link (PathEscape .ID.String)}}
17
17
18
- <span class="ui float right shabox">
18
+ <span class="ui float right shabox gt-df gt-ac ">
19
19
{{template "repo/commit_statuses" dict "Status" .Status "Statuses" .Statuses "root" $.root}}
20
20
{{$class := "ui sha label"}}
21
21
{{if .Signature}}
32
32
{{$class = (printf "%s%s" $class " isWarning")}}
33
33
{{end}}
34
34
{{end}}
35
- <a href="{{$commitLink}}" rel="nofollow" class="{{$class}}">
35
+ <a href="{{$commitLink}}" rel="nofollow" class="gt-ml-3 {{$class}}">
36
36
<span class="shortsha">{{ShortSha .ID.String}}</span>
37
37
{{if .Signature}}
38
38
{{template "repo/shabox_badge" dict "root" $.root "verification" .Verification}}
Original file line number Diff line number Diff line change 484
484
{{range $filename, $lines := .Review.CodeComments}}
485
485
{{range $line, $comms := $lines}}
486
486
<div class="ui segments">
487
- <div class="ui segment gt-py-3 gt-df gt-ac gt-sb">
487
+ <div class="ui segment collapsible-comment-box gt-py-3 gt-df gt-ac gt-sb">
488
488
{{$invalid := (index $comms 0).Invalidated}}
489
489
{{$resolved := (index $comms 0).IsResolved}}
490
490
{{$resolveDoer := (index $comms 0).ResolveDoer}}
543
543
<div class="comment-header-left gt-df gt-ac">
544
544
{{if not .OriginalAuthor}}
545
545
<a class="avatar">
546
- {{avatar $.Context .Poster}}
546
+ {{avatar $.Context .Poster 20 }}
547
547
</a>
548
548
{{end}}
549
549
<span class="text grey muted-links">
Original file line number Diff line number Diff line change 47
47
}
48
48
49
49
.ui .comments .comment .avatar {
50
- display : block;
51
- width : 2.5em ;
52
- height : auto;
53
50
float : left;
54
- margin : 0.2em 0 0 ;
55
- }
56
-
57
- .ui .comments .comment img .avatar ,
58
- .ui .comments .comment .avatar img {
59
- display : block;
60
- margin : 0 auto;
61
- width : 100% ;
62
- height : 100% ;
63
- border-radius : 0.25rem ;
51
+ width : 2.5em ;
64
52
}
65
53
66
54
.ui .comments .comment > .content {
Original file line number Diff line number Diff line change 793
793
display : none;
794
794
}
795
795
796
- /* size adjustment is necessary until fomantic comment module removal */
797
- .repository .view .issue .comment-list .timeline-item .comment-code-cloud img .avatar ,
798
- .repository .view .issue .comment-list .timeline-item .comment-code-cloud .avatar img {
799
- width : 20px ;
800
- height : 20px ;
801
- vertical-align : middle;
802
- }
803
-
804
796
.repository .view .issue .comment-list .timeline-item : first-child : not (.commit ) {
805
797
padding-top : 0 !important ;
806
798
}
1059
1051
1060
1052
.repository .view .issue .comment-list .code-comment {
1061
1053
border : 1px solid transparent;
1062
- padding : 0.25rem 0.5rem ;
1063
1054
margin : 0 ;
1064
1055
}
1065
1056
1066
- .repository .view .issue .comment-list .code-comment .content {
1067
- border : none !important ;
1057
+ /* fix fomantic's border-radius via :first-child with hidden elements */
1058
+ .collapsible-comment-box : has (.gt-hidden ) {
1059
+ border-radius : var (--border-radius ) !important ;
1068
1060
}
1069
1061
1070
1062
.repository .view .issue .comment-list .code-comment .comment-header {
1087
1079
}
1088
1080
1089
1081
.repository .view .issue .comment-list .comment > .avatar ~ .content {
1090
- margin-left : 3em ;
1091
- }
1092
-
1093
- /* size adjustment is necessary until fomantic comment module removal */
1094
- .repository .view .issue .comment-code-cloud .comment-list .code-comment img .avatar ,
1095
- .repository .view .issue .comment-code-cloud .comment-list .comment img .avatar {
1096
- width : 28px ;
1097
- height : 28px ;
1082
+ margin-left : 42px ;
1098
1083
}
1099
1084
1100
1085
.repository .view .issue .comment-list .comment-code-cloud .segment .reactions {
1147
1132
text-decoration : line-through;
1148
1133
}
1149
1134
1150
- .ui .comments .comment .avatar {
1151
- margin : 0 ;
1152
- }
1153
-
1154
1135
.repository .comment .form .ui .comments {
1155
1136
margin-top : -12px ;
1156
1137
max-width : 100% ;
You can’t perform that action at this time.
0 commit comments