[gnome-shell] theme/calendar: Use em instead of px for calendar day sizes
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] theme/calendar: Use em instead of px for calendar day sizes
- Date: Fri, 29 Apr 2022 18:57:58 +0000 (UTC)
commit d52508a29ef89a31c0d64c3ec1bddc2ee3c4cace
Author: Jonas Dreßler <verdre v0yd nl>
Date: Tue Apr 26 18:45:40 2022 +0200
theme/calendar: Use em instead of px for calendar day sizes
The layout manager of the calendar/notifications popup is using the
calendar width to determine the width of the whole right area of the
calendar popup. When enabling large text, this means the cards used for
world clocks, weather etc. get larger, while the calender doesn't get
larger, leading to the cards getting clipped.
Make sure the calendar grows in size just as the cards do when large
text is enabled and define its size in em's instead of pixels.
Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5392
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2282>
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 8d03ab9037..465dc053d8 100644
--- a/data/theme/gnome-shell-sass/widgets/_calendar.scss
+++ b/data/theme/gnome-shell-sass/widgets/_calendar.scss
@@ -60,7 +60,7 @@
}
}
- $calendar_day_size: 32px;
+ $calendar_day_size: 3em;
.calendar-day-base {
text-align: center;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]