Skip to content

Commit 05b084d

Browse files
committed
fix
1 parent e94723f commit 05b084d

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

templates/repo/commits_list_small.tmpl

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@
1313

1414
{{$commitLink:= printf "%s/commit/%s" $.comment.Issue.PullRequest.BaseRepo.Link (PathEscape .ID.String)}}
1515

16-
<span class="tw-flex-1 gt-ellipsis tw-font-mono{{if gt .ParentCount 1}} grey text{{end}}" title="{{.Summary}}">{{RenderCommitMessageLinkSubject $.root.Context .Message $commitLink ($.comment.Issue.PullRequest.BaseRepo.ComposeMetas ctx)}}</span>
16+
<span class="tw-flex-1 tw-font-mono gt-ellipsis" title="{{.Summary}}">
17+
{{- RenderCommitMessageLinkSubject $.root.Context .Message $commitLink ($.comment.Issue.PullRequest.BaseRepo.ComposeMetas ctx) -}}
18+
</span>
1719

1820
{{if IsMultilineCommitMessage .Message}}
19-
<button class="ui button js-toggle-commit-body ellipsis-button" aria-expanded="false">...</button>
20-
{{end}}
21-
{{if IsMultilineCommitMessage .Message}}
22-
<pre class="commit-body tw-hidden">{{RenderCommitBody $.root.Context .Message ($.comment.Issue.PullRequest.BaseRepo.ComposeMetas ctx)}}</pre>
21+
<button class="ui button ellipsis-button show-panel toggle" data-panel="[data-singular-commit-body-for='{{$tag}}']">...</button>
2322
{{end}}
2423

2524
<span class="shabox tw-flex tw-items-center">
@@ -47,5 +46,10 @@
4746
</a>
4847
</span>
4948
</div>
49+
{{if IsMultilineCommitMessage .Message}}
50+
<pre class="commit-body tw-ml-[33px] tw-hidden" data-singular-commit-body-for="{{$tag}}">
51+
{{- RenderCommitBody $.root.Context .Message ($.comment.Issue.PullRequest.BaseRepo.ComposeMetas ctx) -}}
52+
</pre>
53+
{{end}}
5054
{{end}}
5155
</div>

web_src/css/base.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,7 @@ input:-webkit-autofill:active,
730730
font-weight: var(--font-weight-normal);
731731
margin: 0 6px;
732732
padding: 5px 10px;
733+
flex-shrink: 0;
733734
}
734735

735736
.ui .sha.label .shortsha {

web_src/css/repo.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2352,11 +2352,6 @@ tbody.commit-list {
23522352
line-height: initial;
23532353
}
23542354

2355-
/* PR-comment */
2356-
.repository .timeline-item .commit-body {
2357-
margin-left: 45px;
2358-
}
2359-
23602355
.git-notes.top {
23612356
text-align: left;
23622357
}

0 commit comments

Comments
 (0)