File tree Expand file tree Collapse file tree 3 files changed +40
-3
lines changed Expand file tree Collapse file tree 3 files changed +40
-3
lines changed Original file line number Diff line number Diff line change 6
6
<a class="ui floated right blue tiny button" href="{{EscapePound .SourcePath}}">
7
7
{{.i18n.Tr "repo.diff.browse_source"}}
8
8
</a>
9
- <h3 class="has-emoji">{{ RenderCommitMessage .Commit.Message $.RepoLink $.Repository.ComposeMetas}}{{template "repo/commit_status" .CommitStatus}}</h3>
9
+ <h3 class="has-emoji"><span class="message-wrapper"><span class="commit-summary" title="{{.Commit.Summary}}">{{ RenderCommitMessage .Commit.Message $.RepoLink $.Repository.ComposeMetas}}</span></span> {{template "repo/commit_status" .CommitStatus}}</h3>
10
10
{{if IsMultilineCommitMessage .Commit.Message}}
11
11
<pre class="commit-body">{{RenderCommitBody .Commit.Message $.RepoLink $.Repository.ComposeMetas}}</pre>
12
12
{{end}}
Original file line number Diff line number Diff line change 29
29
</a>
30
30
{{template "repo/commit_status" .LatestCommitStatus}}
31
31
{{ $commitLink:= printf "%s/commit/%s" .RepoLink .LatestCommit.ID }}
32
- <span class="grey has-emoji commit-summary" title="{{.LatestCommit.Summary}}">{{RenderCommitMessageLinkSubject .LatestCommit.Message $.RepoLink $commitLink $.Repository.ComposeMetas}}
32
+ <span class="grey has-emoji commit-summary" title="{{.LatestCommit.Summary}}"><span class="message-wrapper"> {{RenderCommitMessageLinkSubject .LatestCommit.Message $.RepoLink $commitLink $.Repository.ComposeMetas}}</span>
33
33
{{if IsMultilineCommitMessage .LatestCommit.Message}}
34
34
<button class="basic compact mini ui icon button commit-button"><i class="ellipsis horizontal icon"></i></button>
35
35
<pre class="commit-body" style="display: none;">{{RenderCommitBody .LatestCommit.Message $.RepoLink $.Repository.ComposeMetas}}</pre>
Original file line number Diff line number Diff line change @@ -2383,14 +2383,51 @@ tbody.commit-list {
2383
2383
vertical-align : baseline ;
2384
2384
}
2385
2385
2386
- .commit-list . message-wrapper {
2386
+ .message-wrapper {
2387
2387
overflow : hidden ;
2388
2388
text-overflow : ellipsis ;
2389
2389
max-width : calc (100% - 50px );
2390
2390
display : inline-block ;
2391
2391
vertical-align : middle ;
2392
2392
}
2393
2393
2394
+ @media only screen and (max-width : 767.98px ) {
2395
+ tr .commit-list {
2396
+ width : 100% ;
2397
+ }
2398
+ th .message-wrapper {
2399
+ display : block ;
2400
+ max-width : calc (100vw - 70px );
2401
+ }
2402
+ }
2403
+
2404
+ @media only screen and (min-width : 768px ) and (max-width : 991.98px ) {
2405
+ tr .commit-list {
2406
+ width : 723px ;
2407
+ }
2408
+ th .message-wrapper {
2409
+ max-width : 280px ;
2410
+ }
2411
+ }
2412
+
2413
+ @media only screen and (min-width : 992px ) and (max-width : 1199.98px ) {
2414
+ tr .commit-list {
2415
+ width : 933px ;
2416
+ }
2417
+ th .message-wrapper {
2418
+ max-width : 490px ;
2419
+ }
2420
+ }
2421
+
2422
+ @media only screen and (min-width : 1200px ) {
2423
+ tr .commit-list {
2424
+ width : 1127px ;
2425
+ }
2426
+ th .message-wrapper {
2427
+ max-width : 680px ;
2428
+ }
2429
+ }
2430
+
2394
2431
.commit-list .commit-summary a {
2395
2432
text-decoration : underline ;
2396
2433
text-decoration-style : dashed ;
You can’t perform that action at this time.
0 commit comments