From bacc69db8332bd7144abcb4b0918deaa871b7c19 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Wed, 4 Jun 2025 08:04:07 +0800 Subject: [PATCH] Make pull request and issue history more compact (#34588) (#34594) Backport #34588 by @silverwind Before, waste of space in multiple places: Screenshot 2025-06-02 at 23 11 08 After, reduced spacing around history entries and inside commits list, also fixed unequal horizontal spacing inside commit badge. Screenshot 2025-06-02 at 23 10 45 Also, here's a rendering of issue history events, it's more compact now at 8px padding: image Co-authored-by: silverwind --- web_src/css/repo.css | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 306db34300..023755c82a 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -523,7 +523,7 @@ td .commit-summary { .repository.view.issue .comment-list .timeline-item, .repository.view.issue .comment-list .timeline-item-group { - padding: 16px 0; + padding: 8px 0; } .repository.view.issue .comment-list .timeline-item-group .timeline-item { @@ -577,6 +577,11 @@ td .commit-summary { justify-content: center; } +.repository.view.issue .comment-list .timeline-item.commits-list .badge { + margin-right: 0; + height: 28px; +} + .repository.view.issue .comment-list .timeline-item .badge .svg { width: 22px; height: 22px; @@ -601,10 +606,6 @@ td .commit-summary { padding-top: 0; } -.repository.view.issue .comment-list .timeline-item.commits-list .ui.avatar { - margin-right: 0.25em; -} - .repository.view.issue .comment-list .timeline-item.event > .commit-status-link { float: right; margin-right: 8px;