aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/home.tmpl
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-03-22 20:51:29 +0100
committerGitHub <noreply@github.com>2024-03-22 20:51:29 +0100
commit04f9ad056882fc3f21b247b16f84437adf0f36d8 (patch)
treea3afde513bac6f2b93a54acba624e2f0210e89d7 /templates/repo/home.tmpl
parent3d751b6ec18e57698ce86b79866031d2c80c2071 (diff)
downloadgitea-04f9ad056882fc3f21b247b16f84437adf0f36d8.tar.gz
gitea-04f9ad056882fc3f21b247b16f84437adf0f36d8.zip
Fix incorrect tailwind migration (#30007)
Fixes https://github.com/go-gitea/gitea/issues/30005. Regression from https://github.com/go-gitea/gitea/pull/29945. There was only once instance of `tw-content-center` before that PR, so I just ran below command and reverted that one instance. ```sh perl -p -i -e 's#tw-content-center#tw-items-center#g' web_src/js/**/* templates/**/* models/**/* tests/**/* ```
Diffstat (limited to 'templates/repo/home.tmpl')
-rw-r--r--templates/repo/home.tmpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl
index 7dfc6cfd73..5a9e02ca60 100644
--- a/templates/repo/home.tmpl
+++ b/templates/repo/home.tmpl
@@ -27,7 +27,7 @@
</div>
{{end}}
</div>
- <div class="tw-flex tw-content-center tw-flex-wrap gt-gap-2" id="repo-topics">
+ <div class="tw-flex tw-items-center tw-flex-wrap gt-gap-2" id="repo-topics">
{{range .Topics}}<a class="ui repo-topic large label topic gt-m-0" href="{{AppSubUrl}}/explore/repos?q={{.Name}}&topic=1">{{.Name}}</a>{{end}}
{{if and .Permission.IsAdmin (not .Repository.IsArchived)}}<button id="manage_topic" class="btn interact-fg gt-font-12">{{ctx.Locale.Tr "repo.topic.manage_topics"}}</button>{{end}}
</div>
@@ -61,7 +61,7 @@
{{end}}
{{template "repo/sub_menu" .}}
<div class="repo-button-row">
- <div class="tw-flex tw-content-center tw-flex-wrap gt-gap-y-3">
+ <div class="tw-flex tw-items-center tw-flex-wrap gt-gap-y-3">
{{template "repo/branch_dropdown" dict "root" . "ContainerClasses" "gt-mr-2"}}
{{if and .CanCompareOrPull .IsViewBranch (not .Repository.IsArchived)}}
{{$cmpBranch := ""}}
@@ -121,7 +121,7 @@
</span>
{{end}}
</div>
- <div class="tw-flex tw-content-center">
+ <div class="tw-flex tw-items-center">
<!-- Only show clone panel in repository home page -->
{{if eq $n 0}}
<div class="clone-panel ui action tiny input">