File tree 2 files changed +18
-8
lines changed 2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change 2
2
3
3
{{$createdStr:= TimeSinceUnix .CreatedUnix $.root.locale}}
4
4
<div class="comment" id="{{.HashTag}}">
5
+ {{if .OriginalAuthor}}
6
+ <span class="avatar"><img src="{{AppSubUrl}}/assets/img/avatar_default.png"></span>
7
+ {{else}}
8
+ {{template "shared/user/avatarlink" .Poster}}
9
+ {{end}}
5
10
<div class="content comment-container">
6
11
<div class="ui top attached header comment-header df ac sb">
7
12
<div class="comment-header-left df ac">
8
13
{{if .OriginalAuthor}}
9
- <span class="avatar"><img src="{{AppSubUrl}}/assets/img/avatar_default.png"></span>
10
14
<span class="text black mr-2">
11
15
{{svg (MigrationIcon $.root.Repository.GetOriginalURLHostname)}}
12
16
{{.OriginalAuthor}}
20
24
{{end}}
21
25
</span>
22
26
{{else}}
23
- {{template "shared/user/avatarlink" .Poster}}
24
27
<span class="text grey">
25
28
{{template "shared/user/namelink" .Poster}}
26
29
{{$.root.locale.Tr "repo.issues.commented_at" (.HashTag|Escape) $createdStr | Safe}}
Original file line number Diff line number Diff line change 73
73
width : 100% ;
74
74
}
75
75
}
76
+
77
+ .ui.buttons {
78
+ width : 100% ;
79
+
80
+ .button {
81
+ flex : 1 ;
82
+ }
83
+ }
76
84
}
77
85
78
86
.comments .comment {
79
87
margin : 0 ;
80
88
81
89
@media @mediaSm {
82
90
padding : 0 ;
91
+ display : flex ;
83
92
84
93
.comment-header-right.actions .ui.basic.label {
85
94
display : none ;
90
99
float : none ;
91
100
margin : 0 .5rem 0 0 ;
92
101
flex-shrink : 0 ;
102
+
103
+ ~ .content {
104
+ margin-left : 1em ;
105
+ }
93
106
}
94
107
95
108
img .avatar {
@@ -292,9 +305,3 @@ a.blob-excerpt:hover {
292
305
width : 72px ;
293
306
height : 10px ;
294
307
}
295
-
296
- @media @mediaSm {
297
- .comment-code-cloud .ui.comments .comment .text {
298
- flex : 1 ;
299
- }
300
- }
You can’t perform that action at this time.
0 commit comments