From 8f04e4cc36919e19aabca4e275761750a406c023 Mon Sep 17 00:00:00 2001 From: Michael Gratton Date: Sat, 30 Mar 2019 15:40:50 +1100 Subject: [PATCH] Fix switches in the accounts editor looking squashed Don't apply CSS padding to all image widget descendants of an editor row since switches and other stock widgets also use them internally. Fixes #299 --- ui/geary.css | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ui/geary.css b/ui/geary.css index a11f940f..b1bd0031 100644 --- a/ui/geary.css +++ b/ui/geary.css @@ -218,10 +218,6 @@ row.geary-settings { padding: 0px; } -row.geary-settings image { - padding: 0px 6px; -} - row.geary-settings entry { border-width: 0px; background-color: transparent; @@ -271,6 +267,14 @@ frame.geary-settings.geary-signature { min-height: 5em; } +/* Images should have some padding to offset them from adjacent +widgets, but care ust be taken since images are also used as children +of other widgets like entries, comboboxes and switches, and these +shouldn't be be touched. */ +row.geary-settings widget > image, +row.geary-settings grid > image { + padding: 0px 6px; +} row.geary-settings > grid > combobox, row.geary-settings > grid > entry,