[gnome-shell] dateMenu: Add some spacing between weather header and location



commit f2df9f1ae4eca08631a3eccf09ff534aef55f879
Author: Florian Müllner <fmuellner gnome org>
Date:   Wed Nov 20 22:21:48 2019 +0100

    dateMenu: Add some spacing between weather header and location
    
    In case of a very long location name, the label may take up all
    available space. Make sure there is at least some spacing between
    header and location in that case.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/issues/1927

 data/theme/gnome-shell-sass/_common.scss | 1 +
 js/ui/dateMenu.js                        | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/data/theme/gnome-shell-sass/_common.scss b/data/theme/gnome-shell-sass/_common.scss
index ea20b1e644..563d32c97b 100644
--- a/data/theme/gnome-shell-sass/_common.scss
+++ b/data/theme/gnome-shell-sass/_common.scss
@@ -977,6 +977,7 @@ StScrollBar {
       spacing-columns: 0.8em;
     }
 
+    .weather-header-box,
     .weather-box {
       spacing: 0.4em;
     }
diff --git a/js/ui/dateMenu.js b/js/ui/dateMenu.js
index 0b9c0d932b..4595d6cfb2 100644
--- a/js/ui/dateMenu.js
+++ b/js/ui/dateMenu.js
@@ -267,7 +267,7 @@ class WeatherSection extends St.Button {
 
         this.child = box;
 
-        let titleBox = new St.BoxLayout();
+        let titleBox = new St.BoxLayout({ style_class: 'weather-header-box' });
         titleBox.add_child(new St.Label({
             style_class: 'weather-header',
             x_align: Clutter.ActorAlign.START,


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