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)}}
-
+ {{/* FIXME: here and above, the tw-overflow-visible is not quite right */}}
+
{{if and $.IsWriter (not $.Repository.IsArchived) (not .DBBranch.IsDeleted)}}
{{if .CodeIndexerStatus}}
- {{ShortSha .CodeIndexerStatus.CommitSha}}
+ {{ShortSha .CodeIndexerStatus.CommitSha}}
{{else}}
{{ctx.Locale.Tr "repo.settings.admin_indexer_unindexed"}}
@@ -752,7 +752,7 @@
{{if and .StatsIndexerStatus .StatsIndexerStatus.CommitSha}}
- {{ShortSha .StatsIndexerStatus.CommitSha}}
+ {{ShortSha .StatsIndexerStatus.CommitSha}}
{{else}}
{{ctx.Locale.Tr "repo.settings.admin_indexer_unindexed"}}
diff --git a/web_src/css/base.css b/web_src/css/base.css
index e67d51bb4d..d6ab5e1009 100644
--- a/web_src/css/base.css
+++ b/web_src/css/base.css
@@ -928,7 +928,8 @@ strong.attention-caution, svg.attention-caution {
color: var(--color-red-dark-1);
}
-.center:not(.popup) {
+/* FIXME: this is a longstanding dirty patch since 2015, it only makes the pages more messy and shouldn't be used */
+.center {
text-align: center;
}
diff --git a/web_src/css/explore.css b/web_src/css/explore.css
index 5cdee823c0..968a103ce9 100644
--- a/web_src/css/explore.css
+++ b/web_src/css/explore.css
@@ -1,13 +1,4 @@
-.explore .secondary-nav {
- border-width: 1px !important;
-}
-
-.explore .secondary-nav .svg {
- width: 16px;
- text-align: center;
- margin-right: 5px;
-}
-
+/* FIXME: need to refactor the repo branches list page and move these styles to proper place */
.ui.repository.branches .info {
font-size: 12px;
color: var(--color-text-light);
@@ -20,12 +11,3 @@
overflow: hidden;
text-overflow: ellipsis;
}
-
-.ui.repository.branches .overflow-visible {
- overflow: visible;
-}
-
-/* fix alignment of PR popup in branches table */
-.ui.repository.branches table .ui.popup {
- text-align: left;
-}
diff --git a/web_src/css/index.css b/web_src/css/index.css
index 02513aebc1..ce1a23b245 100644
--- a/web_src/css/index.css
+++ b/web_src/css/index.css
@@ -82,5 +82,6 @@
@import "./review.css";
@import "./actions.css";
-@tailwind utilities;
@import "./helpers.css";
+
+@tailwind utilities;
diff --git a/web_src/css/modules/navbar.css b/web_src/css/modules/navbar.css
index b5bc95b058..b60d25977d 100644
--- a/web_src/css/modules/navbar.css
+++ b/web_src/css/modules/navbar.css
@@ -103,11 +103,11 @@
#navbar .ui.dropdown .navbar-profile-admin {
display: block;
position: absolute;
- font-size: 10px;
+ font-size: 9px;
font-weight: var(--font-weight-bold);
color: var(--color-nav-bg);
background: var(--color-primary);
- padding: 2px 4px;
+ padding: 2px 3px;
border-radius: 10px;
top: -1px;
left: 18px;