From 2390a46d0fab9f801937f57e27ceb12c6496ba18 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Thu, 29 Jun 2023 05:24:02 -0400 Subject: [PATCH] Reduce table padding globally (#25568) (#25577) Backport #25568 by @silverwind Fomantic's tables have too much padding. Reduce it so we have more information density in them. Especially the admin tables need this because they are bursting already because of column count. ## Admin repolist before and after Screenshot 2023-06-28 at 20 27 55 Screenshot 2023-06-28 at 20 36 03 ## Other tables Screenshot 2023-06-28 at 20 36 22 Screenshot 2023-06-28 at 20 26 37 Screenshot 2023-06-28 at 20 59 30 Files table is unaffected because it has custom padding already. Co-authored-by: silverwind --- web_src/css/base.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/web_src/css/base.css b/web_src/css/base.css index c68707d03d..3f1e891624 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -881,6 +881,24 @@ a.label, color: var(--color-text); } +/* reduce table padding, needed especially for dense admin tables */ +.ui.table > thead > tr > th, +.ui.table > tbody > tr > td, +.ui.table > tr > td { + padding: 6px 3px; +} +/* use more horizontal padding on first and last items for visuals */ +.ui.table > thead > tr > th:first-of-type, +.ui.table > tbody > tr > td:first-of-type, +.ui.table > tr > td:first-of-type { + padding-left: 10px; +} +.ui.table > thead > tr > th:last-of-type, +.ui.table > tbody > tr > td:last-of-type, +.ui.table > tr > td:last-of-type { + padding-right: 10px; +} + img.ui.avatar, .ui.avatar img, .ui.avatar svg {