From 04d7ced063f5892cd9e4f0f42f5ffaa017b608c6 Mon Sep 17 00:00:00 2001 From: silverwind Date: Mon, 31 Jul 2023 00:46:53 +0200 Subject: [PATCH] De-emphasize issue sidebar buttons (#26171) I find the colored buttons in the issue sidebar distracting, given that they are not primary actions, I think we can de-colorize them. Before: Screenshot 2023-07-26 at 19 42 22 Screenshot 2023-07-26 at 19 43 06 Screenshot 2023-07-26 at 19 44 36: After: Screenshot 2023-07-26 at 19 42 04 Screenshot 2023-07-26 at 19 42 51 Screenshot 2023-07-26 at 19 45 15 --- .../repo/issue/view_content/sidebar.tmpl | 32 +++++++++++++------ 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/templates/repo/issue/view_content/sidebar.tmpl b/templates/repo/issue/view_content/sidebar.tmpl index c3a405d855..c89df8626a 100644 --- a/templates/repo/issue/view_content/sidebar.tmpl +++ b/templates/repo/issue/view_content/sidebar.tmpl @@ -299,19 +299,28 @@ {{$.CsrfTokenHtml}} {{if $.IsStopwatchRunning}} - - + + {{else}} {{if .HasUserStopwatch}}
{{.locale.Tr "repo.issues.tracking_already_started" (.OtherStopwatchURL|Escape) | Safe}}
{{end}} - + - + {{end}} @@ -381,7 +393,7 @@ {{$.CsrfTokenHtml}} - @@ -643,7 +655,7 @@ -