From eaac4af245a997a442ac0b506f8d027db67ee14e Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 23 Mar 2024 21:11:15 +0100 Subject: [PATCH] Replace all simple inline styles with tailwind (#30032) These should be all simple inline styles that were left in the templates. Co-authored-by: Giteabot (cherry picked from commit 0bef9a2775af0e27a0754207fc87537b96c2792e) --- templates/admin/notice.tmpl | 2 +- templates/devtest/flex-list.tmpl | 2 +- templates/devtest/tmplerr.tmpl | 4 ++-- templates/repo/diff/box.tmpl | 2 +- templates/repo/issue/view_content/reference_issue_dialog.tmpl | 2 +- templates/repo/settings/deploy_keys.tmpl | 2 +- templates/repo/settings/options.tmpl | 4 ++-- templates/user/auth/webauthn.tmpl | 2 +- web_src/css/review.css | 4 ++++ 9 files changed, 14 insertions(+), 10 deletions(-) diff --git a/templates/admin/notice.tmpl b/templates/admin/notice.tmpl index c788ebc602..5ea003e5ec 100644 --- a/templates/admin/notice.tmpl +++ b/templates/admin/notice.tmpl @@ -20,7 +20,7 @@
{{.ID}} {{ctx.Locale.Tr .TrStr}} - {{.Description}} + {{.Description}} {{DateTime "short" .CreatedUnix}} {{svg "octicon-note" 16}} diff --git a/templates/devtest/flex-list.tmpl b/templates/devtest/flex-list.tmpl index 0c7b27cd84..fdb9eb6b39 100644 --- a/templates/devtest/flex-list.tmpl +++ b/templates/devtest/flex-list.tmpl @@ -73,7 +73,7 @@
- Go + Go {{svg "octicon-star" 16}}45000 {{svg "octicon-git-branch" 16}}1234 diff --git a/templates/devtest/tmplerr.tmpl b/templates/devtest/tmplerr.tmpl index 09cf05fc1f..dd938c895e 100644 --- a/templates/devtest/tmplerr.tmpl +++ b/templates/devtest/tmplerr.tmpl @@ -1,10 +1,10 @@ {{template "base/head" .}}
-
+
hello hello hello hello hello hello hello hello hello hello
-
+
{{template "devtest/tmplerr-sub" .}}
diff --git a/templates/repo/diff/box.tmpl b/templates/repo/diff/box.tmpl index c1d0c4fe8e..6dce6be514 100644 --- a/templates/repo/diff/box.tmpl +++ b/templates/repo/diff/box.tmpl @@ -181,7 +181,7 @@
{{if or $file.IsIncomplete $file.IsBin}} -
+
{{if $file.IsIncomplete}} {{if $file.IsIncompleteLineTooLong}} {{ctx.Locale.Tr "repo.diff.file_suppressed_line_too_long"}} diff --git a/templates/repo/issue/view_content/reference_issue_dialog.tmpl b/templates/repo/issue/view_content/reference_issue_dialog.tmpl index b771e08909..5f338f6768 100644 --- a/templates/repo/issue/view_content/reference_issue_dialog.tmpl +++ b/templates/repo/issue/view_content/reference_issue_dialog.tmpl @@ -2,7 +2,7 @@
{{ctx.Locale.Tr "repo.issues.context.reference_issue"}}
-
+
{{.CsrfTokenHtml}}
diff --git a/templates/repo/settings/deploy_keys.tmpl b/templates/repo/settings/deploy_keys.tmpl index a79a196825..f66b94c332 100644 --- a/templates/repo/settings/deploy_keys.tmpl +++ b/templates/repo/settings/deploy_keys.tmpl @@ -31,7 +31,7 @@ - {{ctx.Locale.Tr "repo.settings.is_writable_info"}} + {{ctx.Locale.Tr "repo.settings.is_writable_info"}}