mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-04 03:48:06 +00:00
Optimize flex layout of release attachment area (#34885)
before:  after: 
This commit is contained in:
parent
1e50cec0b3
commit
69fc5619c4
@ -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">
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user