From 6db66d8ca4faeb03b958728923ce27bdabdae7a5 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 15 Jun 2023 23:12:08 +0800 Subject: [PATCH] Fix some UI alignments (#25277) Fixes: https://github.com/go-gitea/gitea/issues/25282 Fix the problems: 1. The `repo-button-row` had various patches before, this PR makes it consistent 2. The "Add File" has wrong CSS class "icon", remove it 3. The "Add File" padding was overridden by "!important", fix it by `.repo-button-row .button.dropdown` with comment 4. The selector `.ui.segments ~ .ui.top.attached.header` is incorrect, it should use `+` --- templates/repo/commits.tmpl | 2 +- templates/repo/home.tmpl | 8 ++++---- templates/repo/wiki/view.tmpl | 2 +- web_src/css/base.css | 4 ++-- web_src/css/repo.css | 23 ++++++++++------------- 5 files changed, 18 insertions(+), 21 deletions(-) diff --git a/templates/repo/commits.tmpl b/templates/repo/commits.tmpl index 1647d69597..3400dbd251 100644 --- a/templates/repo/commits.tmpl +++ b/templates/repo/commits.tmpl @@ -3,7 +3,7 @@ {{template "repo/header" .}}
{{template "repo/sub_menu" .}} -
+
{{end}} {{template "repo/sub_menu" .}} -
+
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2"}} {{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}} @@ -84,8 +84,9 @@ {{end}} {{if and .CanWriteCode .IsViewBranch (not .Repository.IsArchived)}} - {{end}} diff --git a/templates/repo/wiki/view.tmpl b/templates/repo/wiki/view.tmpl index 370109caa4..ee9a3b2142 100644 --- a/templates/repo/wiki/view.tmpl +++ b/templates/repo/wiki/view.tmpl @@ -3,7 +3,7 @@ {{template "repo/header" .}} {{$title := .title}}
-
+