- {{if .Issue.OriginalAuthor }}
-
-
- {{ .Issue.OriginalAuthor }}
-
-
- {{ .i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe }}
-
-
- {{if .Repository.OriginalURL}} ({{$.i18n.Tr "repo.migrated_from" .Repository.OriginalURL .Repository.GetOriginalURLHostname | Safe }}){{end}}
-
- {{else}}
-
- {{.Issue.Poster.GetDisplayName}}
- {{.i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe}}
-
- {{end}}
- {{if not $.Repository.IsArchived}}
-
+
+ {{if .Issue.OriginalAuthor }}
+
+
+ {{ .Issue.OriginalAuthor }}
+
+
+ {{ .i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe }}
+
+
+ {{if .Repository.OriginalURL}} ({{$.i18n.Tr "repo.migrated_from" .Repository.OriginalURL .Repository.GetOriginalURLHostname | Safe }}){{end}}
+
+ {{else}}
+
+ {{.Issue.Poster.GetDisplayName}}
+ {{.i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe}}
+
+ {{end}}
+
+
+ {{if not $.Repository.IsArchived}}
{{if gt .Issue.ShowTag 0}}
{{if eq .Issue.ShowTag 2}}
@@ -51,8 +53,8 @@
{{end}}
{{template "repo/issue/view_content/add_reaction" Dict "ctx" $ "ActionURL" (Printf "%s/issues/%d/reactions" $.RepoLink .Issue.Index)}}
{{template "repo/issue/view_content/context_menu" Dict "ctx" $ "item" .Issue "delete" false "diff" false "IsCommentPoster" $.IsIssuePoster}}
-
- {{end}}
+ {{end}}
+
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl
index 86ce6148c1..e3fc076b74 100644
--- a/templates/repo/issue/view_content/comments.tmpl
+++ b/templates/repo/issue/view_content/comments.tmpl
@@ -20,13 +20,15 @@
{{end}}
- {{if .OriginalAuthor }}
- {{ .OriginalAuthor }} {{$.i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe}} {{if $.Repository.OriginalURL}}({{$.i18n.Tr "repo.migrated_from" $.Repository.OriginalURL $.Repository.GetOriginalURLHostname | Safe }}){{end}}
- {{else}}
- {{.Poster.GetDisplayName}} {{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdStr | Safe}}
- {{end}}
- {{if not $.Repository.IsArchived}}
-
+
+ {{if .OriginalAuthor }}
+ {{ .OriginalAuthor }} {{$.i18n.Tr "repo.issues.commented_at" .Issue.HashTag $createdStr | Safe}} {{if $.Repository.OriginalURL}}({{$.i18n.Tr "repo.migrated_from" $.Repository.OriginalURL $.Repository.GetOriginalURLHostname | Safe }}){{end}}
+ {{else}}
+ {{.Poster.GetDisplayName}} {{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdStr | Safe}}
+ {{end}}
+
+
+ {{if not $.Repository.IsArchived}}
{{if eq .PosterID .Issue.PosterID }}
{{$.i18n.Tr "repo.issues.poster"}}
@@ -43,8 +45,8 @@
{{end}}
{{template "repo/issue/view_content/add_reaction" Dict "ctx" $ "ActionURL" (Printf "%s/comments/%d/reactions" $.RepoLink .ID)}}
{{template "repo/issue/view_content/context_menu" Dict "ctx" $ "item" . "delete" true "diff" false "IsCommentPoster" (and $.IsSigned (eq $.SignedUserID .PosterID))}}
-
- {{end}}
+ {{end}}
+
diff --git a/web_src/less/_form.less b/web_src/less/_form.less
index 48a8a79b21..c2fb020d7f 100644
--- a/web_src/less/_form.less
+++ b/web_src/less/_form.less
@@ -10,13 +10,9 @@
.ui.attached.header {
background: #f0f0f0;
- .right {
- margin-top: -5px;
-
- .button {
- padding: 8px 10px;
- font-weight: normal;
- }
+ .right .button {
+ padding: 8px 10px;
+ font-weight: normal;
}
}
diff --git a/web_src/less/_repository.less b/web_src/less/_repository.less
index fee85a700f..09b416c4a1 100644
--- a/web_src/less/_repository.less
+++ b/web_src/less/_repository.less
@@ -955,7 +955,6 @@
.tag {
color: #767676;
- margin-top: 3px;
padding: 2px 5px;
font-size: 12px;
border: 1px solid rgba(0, 0, 0, .1);
@@ -969,26 +968,6 @@
}
}
- .actions {
- .item {
- float: left;
-
- &.context {
- float: none;
- }
-
- &.tag {
- margin-right: 5px;
- }
-
- &.action {
- margin-top: 6px;
- padding-left: 10px;
- padding-right: 3px;
- }
- }
- }
-
> .content {
> div:first-child {
border-top-left-radius: 4px;
@@ -1028,11 +1007,14 @@
left: 7px;
}
- .actions {
- display: flex;
- padding: 0 .5rem;
+ .header-left > * + *,
+ .header-right > * + * {
+ margin-left: .25rem;
+ }
+ .actions {
a {
+ padding: .5rem;
color: rgba(0, 0, 0, .4);
&:hover {
diff --git a/web_src/less/themes/theme-arc-green.less b/web_src/less/themes/theme-arc-green.less
index e76f2a1bd4..89a69c241b 100644
--- a/web_src/less/themes/theme-arc-green.less
+++ b/web_src/less/themes/theme-arc-green.less
@@ -1124,7 +1124,7 @@ a.ui.basic.green.label:hover {
.repository.view.issue .comment-list .comment .tag {
color: #dbdbdb;
- border-color: rgb(152, 152, 152);
+ border-color: #505667;
}
.repository.view.issue .comment-list .timeline-item .badge.badge-commit {