0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-26 11:04:27 -04:00

Fix the style issues of the top buttons on the release page, extract a common button group style, and gradually replace the button group styles on other pages later.

This commit is contained in:
Kerwin Bryant 2025-04-15 00:49:56 +00:00
parent 921d3a394d
commit 4f496acc76
4 changed files with 15 additions and 9 deletions

View File

@ -38,7 +38,7 @@
</div>
</div>
{{if not (or .IsBeingCreated .IsBroken)}}
<div class="repo-buttons">
<div class="repo-buttons gitea-buttons">
{{if $.RepoTransfer}}
<form method="post" action="{{$.RepoLink}}/action/accept_transfer?redirect_to={{$.RepoLink}}">
{{$.CsrfTokenHtml}}

View File

@ -11,6 +11,7 @@
{{end}}
</h2>
</div>
<div class="gitea-buttons">
{{if .EnableFeed}}
<a class="ui small button" href="{{.RepoLink}}/{{if .PageIsTagList}}tags{{else}}releases{{end}}.rss">
{{svg "octicon-rss" 16}} {{ctx.Locale.Tr "rss_feed"}}
@ -21,6 +22,7 @@
{{ctx.Locale.Tr "repo.release.new_release"}}
</a>
{{end}}
</div>
</div>
<div class="divider"></div>
{{else if $canReadCode}}

View File

@ -421,3 +421,15 @@ It needs some tricks to tweak the left/right borders with active state */
padding-top: 0.58928571em;
padding-bottom: 0.58928571em;
}
.gitea-buttons {
align-items: center;
display: flex;
flex-flow: row wrap;
word-break: keep-all;
gap: 0.5em;
}
.gitea-buttons .ui.button {
margin: 0 !important;
}

View File

@ -28,14 +28,6 @@
flex-wrap: nowrap;
}
.repo-buttons {
align-items: center;
display: flex;
flex-flow: row wrap;
word-break: keep-all;
gap: 0.25em;
}
.repo-buttons button[disabled] ~ .label {
opacity: var(--opacity-disabled);
color: var(--color-text-dark);