mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-28 20:19:55 +00:00
Optimize flex layout of release attachment area (#34885)
before:  after: 
This commit is contained in:
parent
1e50cec0b3
commit
69fc5619c4
2 changed files with 6 additions and 2 deletions
|
@ -92,7 +92,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
{{range $att := $release.Attachments}}
|
{{range $att := $release.Attachments}}
|
||||||
<li class="item">
|
<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>
|
<strong class="flex-text-inline">{{svg "octicon-package" 16 "download-icon"}}<span class="gt-ellipsis">{{$att.Name}}</span></strong>
|
||||||
</a>
|
</a>
|
||||||
<div class="attachment-right-info flex-text-inline">
|
<div class="attachment-right-info flex-text-inline">
|
||||||
|
|
|
@ -70,8 +70,12 @@
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#release-list .release-entry .attachment-list > .item a {
|
||||||
|
min-width: 300px;
|
||||||
|
}
|
||||||
|
|
||||||
#release-list .release-entry .attachment-list .attachment-right-info {
|
#release-list .release-entry .attachment-list .attachment-right-info {
|
||||||
flex-grow: 1;
|
flex-shrink: 0;
|
||||||
min-width: 300px;
|
min-width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue