Skip to content

Commit 3d47411

Browse files
me-heerMihir
and
Mihir
authored
Fix long package version names overflowing (#28619)
Fixes #28534 --- Before: ![image](https://github.com/go-gitea/gitea/assets/50193156/b229551c-0a7d-4a99-9553-1f11b994876a) After: <img width="304" alt="image" src="https://github.com/go-gitea/gitea/assets/50193156/53d04ad0-6d5c-47e2-8a7d-30a4d5dd9959"> Should we also apply this for long filenames in Assets? It looks like this currently: <img width="285" alt="image" src="https://github.com/go-gitea/gitea/assets/50193156/e2dcbb2e-30d5-4e35-b304-6274ef60bda7"> --------- Co-authored-by: Mihir <[email protected]>
1 parent ce55a74 commit 3d47411

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/package/view.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
<div class="ui relaxed list">
9292
{{range .LatestVersions}}
9393
<div class="item gt-df">
94-
<a class="gt-f1" href="{{$.PackageDescriptor.PackageWebLink}}/{{PathEscape .LowerVersion}}">{{.Version}}</a>
94+
<a class="gt-f1 gt-ellipsis" title="{{.Version}}" href="{{$.PackageDescriptor.PackageWebLink}}/{{PathEscape .LowerVersion}}">{{.Version}}</a>
9595
<span class="text small">{{DateTime "short" .CreatedUnix}}</span>
9696
</div>
9797
{{end}}

0 commit comments

Comments
 (0)