Skip to content

Commit b9e8fa5

Browse files
author
Gusted
committed
More width on viewing comments
1 parent 81f6687 commit b9e8fa5

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

templates/repo/issue/view_content.tmpl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141
{{if .Repository.OriginalURL}} ({{$.i18n.Tr "repo.migrated_from" (.Repository.OriginalURL|Escape) (.Repository.GetOriginalURLHostname|Escape) | Safe }}){{end}}
4242
</span>
4343
{{else}}
44+
<a class="inline-timeline-avatar" href="{{.Issue.Poster.HomeLink}}">
45+
{{avatar .Issue.Poster}}
46+
</a>
4447
<span class="text grey">
4548
<a class="author"{{if gt .Issue.Poster.ID 0}} href="{{.Issue.Poster.HomeLink}}"{{end}}>{{.Issue.Poster.GetDisplayName}}</a>
4649
{{.i18n.Tr "repo.issues.commented_at" (.Issue.HashTag|Escape) $createdStr | Safe}}
@@ -50,12 +53,12 @@
5053
<div class="comment-header-right actions df ac">
5154
{{if gt .Issue.ShowRole 0}}
5255
{{if (.Issue.ShowRole.HasRole "Writer")}}
53-
<div class="ui basic label">
56+
<div class="ui basic label role-label">
5457
{{$.i18n.Tr "repo.issues.collaborator"}}
5558
</div>
5659
{{end}}
5760
{{if (.Issue.ShowRole.HasRole "Owner")}}
58-
<div class="ui basic label">
61+
<div class="ui basic label role-label">
5962
{{$.i18n.Tr "repo.issues.owner"}}
6063
</div>
6164
{{end}}

web_src/less/_repository.less

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,10 @@
861861
}
862862
}
863863

864+
.inline-timeline-avatar {
865+
display: none;
866+
}
867+
864868
.avatar.image,
865869
.avatar.image img {
866870
width: 20px;
@@ -3284,4 +3288,41 @@ td.blob-excerpt {
32843288
width: 50%;
32853289
}
32863290
}
3291+
3292+
.repository.view.issue .comment-list {
3293+
.timeline,
3294+
.timeline-item {
3295+
margin-left: 0;
3296+
}
3297+
3298+
.timeline {
3299+
&::before {
3300+
left: 14px;
3301+
}
3302+
3303+
.inline-timeline-avatar {
3304+
display: flex;
3305+
margin-bottom: auto;
3306+
3307+
img.avatar.image {
3308+
height: 24px;
3309+
width: 24px;
3310+
}
3311+
}
3312+
3313+
.comment-header {
3314+
&::before,
3315+
&::after {
3316+
content: unset;
3317+
}
3318+
3319+
padding-left: 4px;
3320+
}
3321+
3322+
.timeline-avatar,
3323+
.comment-header-right .role-label {
3324+
display: none;
3325+
}
3326+
}
3327+
}
32873328
}

0 commit comments

Comments
 (0)