views/month: Increase overflow popover min width

Makes it so that it's at least 1.25 the width of a day cell, and at
most 1.5 of that.

Closes https://gitlab.gnome.org/GNOME/gnome-calendar/-/issues/1166
This commit is contained in:
Georges Basile Stavracas Neto
2024-08-13 16:25:45 +00:00
parent 2b85b9c680
commit 5f86b88c3b
+3 -1
View File
@@ -159,7 +159,9 @@ allocate_overflow_popover (GcalMonthView *self,
&popover_height,
NULL, NULL);
popover_width = CLAMP (popover_nat_width, popover_min_width, cell_allocation.width * 1.5);
popover_width = CLAMP (popover_nat_width,
MAX (popover_min_width, cell_allocation.width * 1.25),
cell_allocation.width * 1.5);
popover_height = CLAMP (popover_height, cell_allocation.height * 1.5, height);
popover_allocation = (GtkAllocation) {