From 1ea5216f4a5887e585bf7de12b62cfec83b0f4e3 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sun, 16 Mar 2025 13:08:16 +0100 Subject: [PATCH] Replace text-align classes with tailwind (#33905) Small refactor to remove these CSS classes in favor of tailwind. --------- Co-authored-by: wxiaoguang --- templates/admin/dashboard.tmpl | 26 ++++++++-------- templates/devtest/fomantic-modal.tmpl | 10 +++++++ templates/install.tmpl | 2 +- templates/org/team/new.tmpl | 12 ++++---- templates/org/team/teams.tmpl | 2 +- templates/projects/view.tmpl | 2 +- templates/repo/branch/list.tmpl | 6 ++-- templates/repo/commit_page.tmpl | 4 +-- templates/repo/commits_list.tmpl | 8 ++--- templates/repo/diff/box.tmpl | 2 +- templates/repo/issue/choose.tmpl | 12 ++++---- templates/repo/issue/milestone_issues.tmpl | 2 +- templates/repo/issue/new_form.tmpl | 2 +- .../repo/issue/sidebar/issue_management.tmpl | 2 +- .../repo/issue/sidebar/reviewer_list.tmpl | 2 +- templates/repo/issue/view_content.tmpl | 4 +-- .../view_content/reference_issue_dialog.tmpl | 2 +- templates/repo/migrate/migrating.tmpl | 8 ++--- templates/repo/pulse.tmpl | 2 +- templates/repo/settings/branches.tmpl | 2 +- templates/repo/settings/lfs.tmpl | 2 +- templates/repo/settings/lfs_locks.tmpl | 2 +- templates/repo/settings/options.tmpl | 14 ++++----- templates/repo/settings/tags.tmpl | 4 +-- templates/repo/wiki/new.tmpl | 2 +- templates/repo/wiki/pages.tmpl | 2 +- templates/repo/wiki/revision.tmpl | 2 +- templates/shared/actions/runner_list.tmpl | 2 +- templates/shared/user/block_user_dialog.tmpl | 2 +- templates/shared/user/blocked_users.tmpl | 2 +- templates/user/auth/grant.tmpl | 2 +- templates/user/auth/grant_error.tmpl | 2 +- templates/user/auth/webauthn.tmpl | 2 +- .../notification_subscriptions.tmpl | 2 +- web_src/css/base.css | 8 ----- web_src/css/modules/container.css | 4 --- web_src/css/modules/grid.css | 30 ------------------- web_src/css/modules/modal.css | 1 + web_src/css/modules/segment.css | 7 ----- web_src/css/modules/table.css | 15 ---------- 40 files changed, 83 insertions(+), 136 deletions(-) diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl index af2349d288..2426a43b15 100644 --- a/templates/admin/dashboard.tmpl +++ b/templates/admin/dashboard.tmpl @@ -15,57 +15,57 @@ {{ctx.Locale.Tr "admin.dashboard.delete_inactive_accounts"}} - + {{ctx.Locale.Tr "admin.dashboard.delete_repo_archives"}} - + {{ctx.Locale.Tr "admin.dashboard.delete_missing_repos"}} - + {{ctx.Locale.Tr "admin.dashboard.git_gc_repos"}} - + {{if and (not .SSH.Disabled) (not .SSH.StartBuiltinServer)}} {{ctx.Locale.Tr "admin.dashboard.resync_all_sshkeys"}} - + {{ctx.Locale.Tr "admin.dashboard.resync_all_sshprincipals"}} - + {{end}} {{ctx.Locale.Tr "admin.dashboard.resync_all_hooks"}} - + {{ctx.Locale.Tr "admin.dashboard.reinit_missing_repos"}} - + {{ctx.Locale.Tr "admin.dashboard.sync_external_users"}} - + {{ctx.Locale.Tr "admin.dashboard.repo_health_check"}} - + {{ctx.Locale.Tr "admin.dashboard.delete_generated_repository_avatars"}} - + {{ctx.Locale.Tr "admin.dashboard.sync_repo_branches"}} - + {{ctx.Locale.Tr "admin.dashboard.sync_repo_tags"}} - + diff --git a/templates/devtest/fomantic-modal.tmpl b/templates/devtest/fomantic-modal.tmpl index 2fbe2bd97d..838c6893a4 100644 --- a/templates/devtest/fomantic-modal.tmpl +++ b/templates/devtest/fomantic-modal.tmpl @@ -49,6 +49,16 @@ + +