From b5677daf55b3878d3a642bfb91a9a330e4765f1f Mon Sep 17 00:00:00 2001 From: silverwind Date: Tue, 23 Apr 2024 22:38:23 +0200 Subject: [PATCH 1/3] Repo button row tweaks --- templates/repo/clone_buttons.tmpl | 2 +- templates/repo/home.tmpl | 12 ++++----- web_src/css/modules/input.css | 4 +-- web_src/css/repo.css | 41 +++++++++++++++++++++++-------- 4 files changed, 40 insertions(+), 19 deletions(-) diff --git a/templates/repo/clone_buttons.tmpl b/templates/repo/clone_buttons.tmpl index 89daba9dc9827..91952c8a06db2 100644 --- a/templates/repo/clone_buttons.tmpl +++ b/templates/repo/clone_buttons.tmpl @@ -9,7 +9,7 @@ SSH {{end}} - + diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 7b37ac10118db..489f39695da4a 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 := ""}} @@ -66,7 +66,7 @@ {{end}} {{if and .CanWriteCode .IsViewBranch (not .Repository.IsMirror) (not .Repository.IsArchived) (not .IsViewFile)}} -