Skip to content

Commit af142d3

Browse files
author
Gusted
committed
Keep "speech bubble" effect
1 parent 9b247fa commit af142d3

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

templates/repo/diff/comments.tmpl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22

33
{{$createdStr:= TimeSinceUnix .CreatedUnix $.root.locale}}
44
<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}}
510
<div class="content comment-container">
611
<div class="ui top attached header comment-header df ac sb">
712
<div class="comment-header-left df ac">
813
{{if .OriginalAuthor}}
9-
<span class="avatar"><img src="{{AppSubUrl}}/assets/img/avatar_default.png"></span>
1014
<span class="text black mr-2">
1115
{{svg (MigrationIcon $.root.Repository.GetOriginalURLHostname)}}
1216
{{.OriginalAuthor}}
@@ -20,7 +24,6 @@
2024
{{end}}
2125
</span>
2226
{{else}}
23-
{{template "shared/user/avatarlink" .Poster}}
2427
<span class="text grey">
2528
{{template "shared/user/namelink" .Poster}}
2629
{{$.root.locale.Tr "repo.issues.commented_at" (.HashTag|Escape) $createdStr | Safe}}

web_src/less/_review.less

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,22 @@
7373
width: 100%;
7474
}
7575
}
76+
77+
.ui.buttons {
78+
width: 100%;
79+
80+
.button {
81+
flex: 1;
82+
}
83+
}
7684
}
7785

7886
.comments .comment {
7987
margin: 0;
8088

8189
@media @mediaSm {
8290
padding: 0;
91+
display: flex;
8392

8493
.comment-header-right.actions .ui.basic.label {
8594
display: none;
@@ -90,6 +99,10 @@
9099
float: none;
91100
margin: 0 .5rem 0 0;
92101
flex-shrink: 0;
102+
103+
~ .content {
104+
margin-left: 1em;
105+
}
93106
}
94107

95108
img.avatar {
@@ -292,9 +305,3 @@ a.blob-excerpt:hover {
292305
width: 72px;
293306
height: 10px;
294307
}
295-
296-
@media @mediaSm {
297-
.comment-code-cloud .ui.comments .comment .text {
298-
flex: 1;
299-
}
300-
}

0 commit comments

Comments
 (0)