Skip to content

Commit 90e9e79

Browse files
GiteaBotkerwin612
andauthored
Optimize flex layout of release attachment area (#34885) (#34886)
Backport #34885 by kerwin612 Co-authored-by: Kerwin Bryant <[email protected]>
1 parent c6467ed commit 90e9e79

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

templates/repo/release/list.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
{{end}}
9393
{{range $att := $release.Attachments}}
9494
<li class="item">
95-
<a target="_blank" class="tw-flex-grow-[2] gt-ellipsis" rel="nofollow" download href="{{$att.DownloadURL}}">
95+
<a target="_blank" class="tw-flex-1 gt-ellipsis" rel="nofollow" download href="{{$att.DownloadURL}}">
9696
<strong class="flex-text-inline">{{svg "octicon-package" 16 "download-icon"}}<span class="gt-ellipsis">{{$att.Name}}</span></strong>
9797
</a>
9898
<div class="attachment-right-info flex-text-inline">

web_src/css/repo/release-tag.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,12 @@
7070
flex-wrap: wrap;
7171
}
7272

73+
#release-list .release-entry .attachment-list > .item a {
74+
min-width: 300px;
75+
}
76+
7377
#release-list .release-entry .attachment-list .attachment-right-info {
74-
flex-grow: 1;
78+
flex-shrink: 0;
7579
min-width: 300px;
7680
}
7781

0 commit comments

Comments
 (0)