From ec56278cbcf668df17ce5becb6254a52c7b42bbb Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Wed, 3 May 2023 12:04:00 +0200 Subject: [PATCH] style: Scale calendar heading with font size Using a fixed pixel size can result in the cell being too small for the contained label. Instead use em to scale with the font size like is done for the other cells. The chosen size corresponds to 16px with the default font settings. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6651 Part-of: --- data/theme/gnome-shell-sass/widgets/_calendar.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/theme/gnome-shell-sass/widgets/_calendar.scss b/data/theme/gnome-shell-sass/widgets/_calendar.scss index 393221627..2a6aec8a9 100644 --- a/data/theme/gnome-shell-sass/widgets/_calendar.scss +++ b/data/theme/gnome-shell-sass/widgets/_calendar.scss @@ -94,7 +94,7 @@ &.calendar-day-heading { color: $insensitive_fg_color; padding-top: $base_padding; - height: 16px !important; // force heading to be smaller height + height: 1.1em !important; // force heading to be smaller height font-weight: 600; @extend %smaller; }