Skip to content

Commit 5c55986

Browse files
committed
fix
1 parent 6599efb commit 5c55986

File tree

11 files changed

+95
-231
lines changed

11 files changed

+95
-231
lines changed

templates/repo/commits_list_small.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<button class="ui button ellipsis-button show-panel toggle" data-panel="[data-singular-commit-body-for='{{$tag}}']">...</button>
2323
{{end}}
2424

25-
<span class="tw-flex tw-items-center tw-gap-2">
25+
<span class="flex-text-block">
2626
{{template "repo/commit_statuses" dict "Status" .Status "Statuses" .Statuses}}
2727
{{template "repo/commit_sign_badge" dict "Commit" . "CommitBaseLink" $commitBaseLink "CommitSignVerification" .Verification}}
2828
</span>

templates/repo/diff/comments.tmpl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
{{$createdStr:= DateUtils.TimeSince .CreatedUnix}}
44
<div class="comment" id="{{.HashTag}}">
5-
{{if .OriginalAuthor}}
6-
<span class="avatar">{{ctx.AvatarUtils.Avatar nil}}</span>
7-
{{else}}
8-
{{template "shared/user/avatarlink" dict "user" .Poster}}
9-
{{end}}
5+
<div class="tw-mt-2 tw-mr-4">
6+
{{if .OriginalAuthor}}
7+
<span class="avatar">{{ctx.AvatarUtils.Avatar nil}}</span>
8+
{{else}}
9+
{{template "shared/user/avatarlink" dict "user" .Poster}}
10+
{{end}}
11+
</div>
1012
<div class="content comment-container">
11-
<div class="comment-header">
13+
<div class="comment-header avatar-content-left-arrow">
1214
<div class="comment-header-left">
1315
{{if .OriginalAuthor}}
1416
<span class="text black tw-font-semibold tw-mr-1">

templates/repo/editor/commit_form.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="commit-form-wrapper">
22
{{ctx.AvatarUtils.Avatar .SignedUser 40 "commit-avatar"}}
3-
<div class="commit-form">
3+
<div class="commit-form avatar-content-left-arrow">
44
<h3>{{- if .CommitFormOptions.WillSign}}
55
<span title="{{ctx.Locale.Tr "repo.signing.will_sign" .CommitFormOptions.SigningKey}}">{{svg "octicon-lock" 24}}</span>
66
{{ctx.Locale.Tr "repo.editor.commit_signed_changes"}}

templates/repo/issue/new_form.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<div class="issue-content-left">
55
<div class="ui comments">
66
<div class="comment">
7-
{{ctx.AvatarUtils.Avatar .SignedUser 40}}
8-
<div class="ui segment content tw-my-0">
7+
<div class=" tw-mr-4 not-mobile">{{ctx.AvatarUtils.Avatar .SignedUser 40}}</div>
8+
<div class="ui segment content tw-my-0 avatar-content-left-arrow">
99
<div class="field">
1010
<input name="title" data-global-init="initInputAutoFocusEnd" id="issue_title" required maxlength="255" autocomplete="off"
1111
placeholder="{{ctx.Locale.Tr "repo.milestones.title"}}"

templates/repo/issue/view_content.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</a>
1414
{{end}}
1515
<div class="content comment-container">
16-
<div class="comment-header" role="heading" aria-level="3">
16+
<div class="comment-header avatar-content-left-arrow" role="heading" aria-level="3">
1717
<div class="comment-header-left">
1818
{{if .Issue.OriginalAuthor}}
1919
<span class="text black tw-font-semibold">
@@ -78,7 +78,7 @@
7878
{{ctx.AvatarUtils.Avatar .SignedUser 40}}
7979
</a>
8080
<div class="content">
81-
<div class="ui segment">
81+
<div class="ui segment avatar-content-left-arrow">
8282
<form class="ui form form-fetch-action" id="comment-form" action="{{$.RepoLink}}/issues/{{.Issue.Index}}/comments" method="post">
8383
{{template "repo/issue/comment_tab" .}}
8484
{{.CsrfTokenHtml}}

templates/repo/issue/view_content/comments.tmpl

Lines changed: 49 additions & 51 deletions
Large diffs are not rendered by default.

templates/repo/issue/view_content/pull_merge_box.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
</div>
3939
{{end}}
4040
{{$showGeneralMergeForm := false}}
41-
<div class="ui attached segment merge-section {{if not $.LatestCommitStatus}}no-header{{end}} flex-items-block">
41+
<div class="ui attached segment merge-section {{if not $.LatestCommitStatus}}avatar-content-left-arrow{{end}} flex-items-block">
4242
{{if .Issue.PullRequest.HasMerged}}
4343
{{if .IsPullBranchDeletable}}
4444
<div class="item item-section text tw-flex-1">

templates/shared/user/avatarlink.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<a class="avatar"{{if gt .user.ID 0}} href="{{.user.HomeLink}}"{{end}}>{{ctx.AvatarUtils.Avatar .user}}</a>
1+
<a class="avatar-with-link" {{if gt .user.ID 0}}href="{{.user.HomeLink}}"{{end}}>{{ctx.AvatarUtils.Avatar .user}}</a>

web_src/css/base.css

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
--font-size-label: 12px; /* font size of individual labels */
3939

4040
--gap-inline: 0.25rem; /* gap for inline texts and elements, for example: the spaces for sentence with labels, button text, etc */
41-
--gap-block: 0.25rem; /* gap for element blocks, for example: spaces between buttons, menu image & title, header icon & title etc */
41+
--gap-block: 0.5rem; /* gap for element blocks, for example: spaces between buttons, menu image & title, header icon & title etc */
4242
}
4343

4444
@media (min-width: 768px) and (max-width: 1200px) {
@@ -1069,7 +1069,9 @@ table th[data-sortt-desc] .svg {
10691069
.btn,
10701070
.ui.ui.button,
10711071
.ui.ui.dropdown,
1072-
.flex-text-inline {
1072+
.flex-text-inline,
1073+
.flex-text-inline > a,
1074+
.flex-text-inline > span {
10731075
display: inline-flex;
10741076
align-items: center;
10751077
gap: var(--gap-inline);

web_src/css/modules/comment.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@
5656
min-width: 0;
5757
}
5858

59-
.ui.comments .comment > .avatar ~ .content {
60-
margin-left: 12px;
61-
}
62-
6359
.ui.comments .comment .author {
6460
font-size: 1em;
6561
font-weight: var(--font-weight-medium);

0 commit comments

Comments
 (0)