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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user