0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-04 22:57:34 -04:00

Optimize flex layout of release attachment area (#34885) (#34886)

Backport #34885 by kerwin612

Co-authored-by: Kerwin Bryant <kerwin612@qq.com>
This commit is contained in:
Giteabot 2025-06-28 09:10:41 +08:00 committed by GitHub
parent c6467edcb1
commit 90e9e79232
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -92,7 +92,7 @@
{{end}}
{{range $att := $release.Attachments}}
<li class="item">
<a target="_blank" class="tw-flex-grow-[2] gt-ellipsis" rel="nofollow" download href="{{$att.DownloadURL}}">
<a target="_blank" class="tw-flex-1 gt-ellipsis" rel="nofollow" download href="{{$att.DownloadURL}}">
<strong class="flex-text-inline">{{svg "octicon-package" 16 "download-icon"}}<span class="gt-ellipsis">{{$att.Name}}</span></strong>
</a>
<div class="attachment-right-info flex-text-inline">

View File

@ -70,8 +70,12 @@
flex-wrap: wrap;
}
#release-list .release-entry .attachment-list > .item a {
min-width: 300px;
}
#release-list .release-entry .attachment-list .attachment-right-info {
flex-grow: 1;
flex-shrink: 0;
min-width: 300px;
}