From a92f5057ae962c0a503b6f66c2615b8cbde9a76a Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sat, 28 Dec 2024 19:51:38 +0800 Subject: [PATCH] Fix and/or comment some legacy CSS problems (#33015) --- templates/repo/branch/list.tmpl | 6 ++++-- templates/repo/settings/options.tmpl | 4 ++-- web_src/css/base.css | 3 ++- web_src/css/explore.css | 20 +------------------- web_src/css/index.css | 3 ++- web_src/css/modules/navbar.css | 4 ++-- 6 files changed, 13 insertions(+), 27 deletions(-) diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl index 5484024ff8..cb504e2b75 100644 --- a/templates/repo/branch/list.tmpl +++ b/templates/repo/branch/list.tmpl @@ -29,7 +29,8 @@

{{svg "octicon-git-commit" 16 "tw-mr-1"}}{{ShortSha .DefaultBranchBranch.DBBranch.CommitID}} · {{ctx.RenderUtils.RenderCommitMessage .DefaultBranchBranch.DBBranch.CommitMessage (.Repository.ComposeMetas ctx)}} · {{ctx.Locale.Tr "org.repo_updated"}} {{DateUtils.TimeSince .DefaultBranchBranch.DBBranch.CommitTime}}{{if .DefaultBranchBranch.DBBranch.Pusher}}  {{template "shared/user/avatarlink" dict "user" .DefaultBranchBranch.DBBranch.Pusher}}{{template "shared/user/namelink" .DefaultBranchBranch.DBBranch.Pusher}}{{end}}

- + {{/* FIXME: here and below, the tw-overflow-visible is not quite right but it is still needed the moment: to show the important buttons when the width is narrow */}} + {{if and $.IsWriter (not $.Repository.IsArchived) (not .IsDeleted)}}