From b2abac5e5ff05362e2d200c99cf792e7c3ba1330 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 27 Apr 2024 13:22:55 +0200 Subject: [PATCH] Improve diff stats bar (#30669) Minor tweaks: - Remove unnecessary `item` class which was causing unwanted padding to be added. - Add some padding and prevent wrapping so it looks better on mobile. - Increase width by 4px. Screenshot 2024-04-24 at 00 15 07 Screenshot 2024-04-24 at 00 14 57 --- templates/repo/pulls/tab_menu.tmpl | 2 +- web_src/css/repo.css | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repo/pulls/tab_menu.tmpl b/templates/repo/pulls/tab_menu.tmpl index a6d058f16..d5a8d6ed2 100644 --- a/templates/repo/pulls/tab_menu.tmpl +++ b/templates/repo/pulls/tab_menu.tmpl @@ -16,7 +16,7 @@ {{if .NumFiles}}{{.NumFiles}}{{else}}-{{end}} {{if or .Diff.TotalAddition .Diff.TotalDeletion}} - + {{if .Diff.TotalAddition}}+{{.Diff.TotalAddition}}{{end}} {{if .Diff.TotalDeletion}}-{{.Diff.TotalDeletion}}{{end}}
diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 4de994112..dacb98ddb 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -2520,7 +2520,7 @@ tbody.commit-list { display: inline-block; background-color: var(--color-red); height: 12px; - width: 40px; + width: 44px; } .diff-stats-bar .diff-stats-add-bar {