From c76b221ccab873783d5e6c0ccd771f3e4a312e76 Mon Sep 17 00:00:00 2001 From: silverwind Date: Thu, 29 Jun 2023 06:40:03 +0200 Subject: [PATCH] Reduce table padding globally (#25568) 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: Giteabot --- 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 caa6cf5e19..016c263e43 100644 --- a/web_src/css/base.css +++ b/web_src/css/base.css @@ -898,6 +898,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 {