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 @@ -2351,14 +2351,51 @@ tbody.commit-list {
2351
2351
vertical-align : baseline ;
2352
2352
}
2353
2353
2354
- .commit-list . message-wrapper {
2354
+ .message-wrapper {
2355
2355
overflow : hidden ;
2356
2356
text-overflow : ellipsis ;
2357
2357
max-width : calc (100% - 50px );
2358
2358
display : inline-block ;
2359
2359
vertical-align : middle ;
2360
2360
}
2361
2361
2362
+ @media only screen and (max-width : 767.98px ) {
2363
+ tr .commit-list {
2364
+ width : 100% ;
2365
+ }
2366
+ th .message-wrapper {
2367
+ display : block ;
2368
+ max-width : calc (100vw - 70px );
2369
+ }
2370
+ }
2371
+
2372
+ @media only screen and (min-width : 768px ) and (max-width : 991.98px ) {
2373
+ tr .commit-list {
2374
+ width : 723px ;
2375
+ }
2376
+ th .message-wrapper {
2377
+ max-width : 280px ;
2378
+ }
2379
+ }
2380
+
2381
+ @media only screen and (min-width : 992px ) and (max-width : 1199.98px ) {
2382
+ tr .commit-list {
2383
+ width : 933px ;
2384
+ }
2385
+ th .message-wrapper {
2386
+ max-width : 490px ;
2387
+ }
2388
+ }
2389
+
2390
+ @media only screen and (min-width : 1200px ) {
2391
+ tr .commit-list {
2392
+ width : 1127px ;
2393
+ }
2394
+ th .message-wrapper {
2395
+ max-width : 680px ;
2396
+ }
2397
+ }
2398
+
2362
2399
.commit-list .commit-summary a {
2363
2400
text-decoration : underline ;
2364
2401
text-decoration-style : dashed ;
You can’t perform that action at this time.
0 commit comments