ui: improve button gap consistency

This commit is contained in:
0ko 2024-06-28 13:11:32 +05:00
parent 7299b2def4
commit dc0d3a40ab
3 changed files with 15 additions and 12 deletions

View file

@ -108,7 +108,7 @@
<span class="help">{{ctx.Locale.Tr "repo.release.hide_archive_links_helper"}}</span> <span class="help">{{ctx.Locale.Tr "repo.release.hide_archive_links_helper"}}</span>
{{end}} {{end}}
<div class="divider tw-mt-0"></div> <div class="divider tw-mt-0"></div>
<div class="tw-flex tw-justify-end"> <div class="tw-flex tw-justify-end button-row">
{{if .PageIsEditRelease}} {{if .PageIsEditRelease}}
<a class="ui small button" href="{{.RepoLink}}/releases"> <a class="ui small button" href="{{.RepoLink}}/releases">
{{ctx.Locale.Tr "repo.release.cancel"}} {{ctx.Locale.Tr "repo.release.cancel"}}

View file

@ -11,16 +11,18 @@
{{end}} {{end}}
</h2> </h2>
</div> </div>
{{if .EnableFeed}} <div class="button-row">
<a class="ui small button" href="{{.RepoLink}}/{{if .PageIsTagList}}tags{{else}}releases{{end}}.rss"> {{if .EnableFeed}}
{{svg "octicon-rss" 16}} {{ctx.Locale.Tr "rss_feed"}} <a class="ui small button" href="{{.RepoLink}}/{{if .PageIsTagList}}tags{{else}}releases{{end}}.rss">
</a> {{svg "octicon-rss" 16}} {{ctx.Locale.Tr "rss_feed"}}
{{end}} </a>
{{if and (not .PageIsTagList) .CanCreateRelease}} {{end}}
<a class="ui small primary button" href="{{$.RepoLink}}/releases/new"> {{if and (not .PageIsTagList) .CanCreateRelease}}
{{ctx.Locale.Tr "repo.release.new_release"}} <a class="ui small primary button" href="{{$.RepoLink}}/releases/new">
</a> {{ctx.Locale.Tr "repo.release.new_release"}}
{{end}} </a>
{{end}}
</div>
</div> </div>
<div class="divider"></div> <div class="divider"></div>
{{else if $canReadCode}} {{else if $canReadCode}}

View file

@ -601,7 +601,8 @@ td .commit-summary {
align-items: center; align-items: center;
} }
.repository.view.issue .button-row { .repository.view.issue .button-row,
.repository.releases .button-row {
display: flex; display: flex;
} }