mirror of https://github.com/go-gitea/gitea.git
move styles to css and fix alignment
This commit is contained in:
parent
3ec0b96c28
commit
c1f213daca
|
@ -46,7 +46,7 @@
|
|||
{{$l := Eval $n "-" 1}}
|
||||
{{$isHomepage := (eq $n 0)}}
|
||||
<div class="repo-button-row">
|
||||
<div class="repo-button-row-left tw-flex tw-flex-1 tw-items-center tw-gap-2">
|
||||
<div class="repo-button-row-left">
|
||||
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "tw-mr-1"}}
|
||||
{{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}}
|
||||
{{$cmpBranch := ""}}
|
||||
|
@ -113,7 +113,7 @@
|
|||
</span>
|
||||
{{end}}
|
||||
</div>
|
||||
<div class="repo-button-row-right tw-flex tw-flex-1 tw-items-center">
|
||||
<div class="repo-button-row-right">
|
||||
<!-- Only show clone panel in repository home page -->
|
||||
{{if $isHomepage}}
|
||||
<div class="clone-panel ui action tiny input">
|
||||
|
|
|
@ -2249,6 +2249,18 @@ td .commit-summary {
|
|||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.repo-button-row-left,
|
||||
.repo-button-row-right {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
.repo-button-row-right {
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
@media (max-width: 991px) {
|
||||
.repository:not(.wiki) .repo-button-row {
|
||||
flex-direction: column;
|
||||
|
|
Loading…
Reference in New Issue