[fractal] Fix typing notification margin



commit daf36388ad036ab5dc8696d5dbb81837c3b4f251
Author: Daniel GarcĂ­a Moreno <dani danigm net>
Date:   Wed Jun 26 08:31:38 2019 +0200

    Fix typing notification margin
    
    The margin of the typing_label was not exactly aligned with the text, we
    have the padding left of the list (18/6) plus the size of the avatar
    (40) plus double of the padding of the row (9 * 2).
    
    With the handy column the list left padding changes from 18 to 6 so we
    need to control that case and change the margin according to that.
    
    Fix https://gitlab.gnome.org/GNOME/fractal/issues/492

 fractal-gtk/res/app.css | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/fractal-gtk/res/app.css b/fractal-gtk/res/app.css
index 470a9492..e170d607 100644
--- a/fractal-gtk/res/app.css
+++ b/fractal-gtk/res/app.css
@@ -295,11 +295,18 @@ stack.titlebar:not(headerbar) > box > separator {
 
 .typing_label {
   margin: 6px;
-  margin-left: 78px;
+  /** list-padding-left + avatar-size + row-padding * 2 **/
+  /**                18 +          40 +              18 **/
+  margin-left: 76px;
   margin-bottom: 8px;
   color: @theme_selected_bg_color;
 }
 
+.folded-history .typing_label {
+  /** list-padding-left + avatar-size + row-padding * 2 **/
+  /**                 6 +          40 +              18 **/
+  margin-left: 64px;
+}
 
 .badge {
   border-radius: 5px;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]