mirror of
https://github.com/go-gitea/gitea.git
synced 2025-02-20 11:43:57 +08:00
Improve button layout on small screens (#33633)
Fix #33160 Better "New Repository" & "New Migration" buttons on home page. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
241f799edf
commit
748b731612
@ -16,10 +16,10 @@
|
|||||||
{{if .ShowMemberAndTeamTab}}
|
{{if .ShowMemberAndTeamTab}}
|
||||||
<div class="ui five wide column">
|
<div class="ui five wide column">
|
||||||
{{if .CanCreateOrgRepo}}
|
{{if .CanCreateOrgRepo}}
|
||||||
<div class="center aligned tw-mb-4">
|
<div class="tw-flex tw-flex-wrap tw-justify-center tw-gap-x-1 tw-gap-y-2 tw-mb-4">
|
||||||
<a class="ui primary button" href="{{AppSubUrl}}/repo/create?org={{.Org.ID}}">{{ctx.Locale.Tr "new_repo"}}</a>
|
<a class="ui primary button tw-grow" href="{{AppSubUrl}}/repo/create?org={{.Org.ID}}">{{ctx.Locale.Tr "new_repo"}}</a>
|
||||||
{{if not .DisableNewPullMirrors}}
|
{{if not .DisableNewPullMirrors}}
|
||||||
<a class="ui primary button" href="{{AppSubUrl}}/repo/migrate?org={{.Org.ID}}&mirror=1">{{ctx.Locale.Tr "new_migrate"}}</a>
|
<a class="ui primary button tw-grow" href="{{AppSubUrl}}/repo/migrate?org={{.Org.ID}}&mirror=1">{{ctx.Locale.Tr "new_migrate"}}</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
<div class="divider"></div>
|
<div class="divider"></div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user