From 390ec619f3fe04ad6c91c52813bc17d9963d5322 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Thu, 24 Aug 2023 23:46:30 +0800 Subject: Fix review bar misalignment (#26711) --- web_src/css/repo.css | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'web_src/css/repo.css') diff --git a/web_src/css/repo.css b/web_src/css/repo.css index 03e9019b25..414bd1d201 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -1625,10 +1625,11 @@ } .diff-detail-actions { - /* prevent font-size from increasing element height so that .diff-detail-box comes - out with height of 47px (one line) and 77px (two lines), which is important for - position: sticky */ - height: 33px; + display: flex; + align-items: center; + gap: 0.25em; + flex-wrap: wrap; + justify-content: end; } .diff-detail-actions > *, @@ -1642,12 +1643,7 @@ padding-top: 0.25rem; } .repository .diff-detail-box .diff-detail-actions .ui.button:not(.btn-submit) { - padding-left: 0.5rem; - padding-right: 0.5rem; - display: flex; - flex-wrap: wrap; - justify-content: center; - text-align: center; + padding: 0 0.5rem; } } -- cgit v1.2.3