Calendar: the month, week or day on show is not centred on the page, as #858 asked #900
Labels
No labels
accessibility
authentication
breaking change
bug
documentation
enhancement
interface
internationalisation
observability
performance
security
tier
1
tier
2
tier
3
tier/4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Postulo/postulo#900
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
#858 asked for the period's name (October 2026, Week 42, Monday 12 October) to be centred on the page in every calendar view, with the controls either side of it.
cae5f61ecclosed #858, but the name is still not centred. It sits straight after the Previous · This month · Next group, and the view switcher is pushed to the right. So the name lands somewhere left of centre, and the place moves with the label lengths, the language and the view.Where
templates/applications/calendar.html:166-197. The<nav data-period>isflex flex-wrap items-center gap-3with three children in a row: the step group, the<h2>holding the picker button, and the views group withms-auto. Nothing centres the<h2>. It only follows the step group.What to do
grid grid-cols-[1fr_auto_1fr]: the step group at the start, the period in the middle track, centred, and the views group at the end. The period then stays at the centre of the page whatever width the two groups take. In right-to-left languages the logical order flips by itself.data-align="start") should open under the centred name, so align it to the centre.Done when
[data-period] h2matches the centre of the nav, for month, week, day and agenda.Checked against
mainat75f31208b.Fixed in
434b8b769.