Skip to content

Commit 4ac45a0

Browse files
committed
Fix middle align
1 parent bb6e2a6 commit 4ac45a0

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

templates/repo/release/new.tmpl

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,20 @@
5858
</div>
5959
</div>
6060
{{range .attachments}}
61-
<div class="field middle aligned" id="attachment-{{.ID}}">
62-
<span class="ui text middle aligned right">
61+
<div class="field" id="attachment-{{.ID}}">
62+
<div class="ui right df ac wrap_remove">
6363
<a class="ui mini compact red button remove-rel-attach" data-id="{{.ID}}" data-uuid="{{.UUID}}">
6464
{{$.i18n.Tr "remove"}}
6565
</a>
66-
</span>
67-
<input name="attachment-edit-{{.UUID}}" style="width:450px" required value="{{.Name}}"/>
68-
<input name="attachment-del-{{.UUID}}" type="hidden" value="false"/>
69-
<span class="ui text grey">{{.Size | FileSize}}</span>
70-
<span class="poping up" data-content="{{$.i18n.Tr "repo.release.download_count" (.DownloadCount | PrettyNumber)}}">
71-
{{svg "octicon-info"}}
72-
</span>
66+
</div>
67+
<div class="df ac">
68+
<input name="attachment-edit-{{.UUID}}" class="mr-3 attachment_edit" required value="{{.Name}}"/>
69+
<input name="attachment-del-{{.UUID}}" type="hidden" value="false"/>
70+
<span class="ui text grey mr-3">{{.Size | FileSize}}</span>
71+
<span class="poping up" data-content="{{$.i18n.Tr "repo.release.download_count" (.DownloadCount | PrettyNumber)}}">
72+
{{svg "octicon-info"}}
73+
</span>
74+
</div>
7375
</div>
7476
{{end}}
7577
{{if .IsAttachmentEnabled}}

web_src/less/_repository.less

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1863,6 +1863,13 @@
18631863
margin-bottom: 1em;
18641864
}
18651865
}
1866+
1867+
.wrap_remove {
1868+
height: 38px;
1869+
}
1870+
.attachment_edit {
1871+
width: 450px !important;
1872+
}
18661873
}
18671874
}
18681875

0 commit comments

Comments
 (0)