summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMihir Joshi <mihir67mj@gmail.com>2023-12-30 13:12:16 +0530
committerGitHub <noreply@github.com>2023-12-30 07:42:16 +0000
commit3d474110c181df7854576d78e46209908f7e1b52 (patch)
treec29608be83d72e1d34a641b05ee47a49e59ddbc9 /templates
parentce55a74374aa1fe07cfb79ceeb8554aa7a2abce2 (diff)
downloadgitea-3d474110c181df7854576d78e46209908f7e1b52.tar.gz
gitea-3d474110c181df7854576d78e46209908f7e1b52.zip
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 <mihir.joshi@senpiper.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/package/view.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/package/view.tmpl b/templates/package/view.tmpl
index bee4d4e56c..553a46cfad 100644
--- a/templates/package/view.tmpl
+++ b/templates/package/view.tmpl
@@ -91,7 +91,7 @@
<div class="ui relaxed list">
{{range .LatestVersions}}
<div class="item gt-df">
- <a class="gt-f1" href="{{$.PackageDescriptor.PackageWebLink}}/{{PathEscape .LowerVersion}}">{{.Version}}</a>
+ <a class="gt-f1 gt-ellipsis" title="{{.Version}}" href="{{$.PackageDescriptor.PackageWebLink}}/{{PathEscape .LowerVersion}}">{{.Version}}</a>
<span class="text small">{{DateTime "short" .CreatedUnix}}</span>
</div>
{{end}}