From f2df9f1ae4eca08631a3eccf09ff534aef55f879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 20 Nov 2019 22:21:48 +0100 Subject: [PATCH] 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 ea20b1e64..563d32c97 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 0b9c0d932..4595d6cfb 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,