From c1f213daca2eb2ec8776f3cb8418dc3e21310bcb Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 30 Apr 2024 16:35:57 +0200 Subject: [PATCH] move styles to css and fix alignment --- templates/repo/home.tmpl | 4 ++-- web_src/css/repo.css | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 516ff2b04d..6df9f7d72a 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -46,7 +46,7 @@ {{$l := Eval $n "-" 1}} {{$isHomepage := (eq $n 0)}}
-
+
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "tw-mr-1"}} {{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}} {{$cmpBranch := ""}} @@ -113,7 +113,7 @@ {{end}}
-
+
{{if $isHomepage}}
diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 143cd6112c..f19b35907b 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -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;