Skip to content

Commit 48701cf

Browse files
committed
fix(calendar): stop the month name deciding how wide the grid is
1 parent f164f9d commit 48701cf

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎src/main/resources/META-INF/resources/styles/calendar.css‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,16 @@
3232
display: none;
3333
}
3434

35+
/* CustomField is inline-grid, so a calendar left to itself takes the width of its widest
36+
content — which is the hero month name. The seven columns are then scaled to that, and
37+
square cells turn the extra width into extra height, so the whole grid changes size
38+
from month to month: September is a wider word than August. The grid belongs at the
39+
width of whatever holds it. The candidate-days screen escapes this only by adding its
40+
calendar straight to .screen-body, which stretches it. */
41+
.calendar-field {
42+
width: 100%;
43+
}
44+
3545
.calendar-weekdays,
3646
.calendar-grid {
3747
display: grid;

0 commit comments

Comments
 (0)