fix(calendar): the docked pane's date fits beside its buttons

In the pane's agenda and day views the title had about seventy pixels
and read "Sep 24, 20…", now on the surface every desktop opens on. The
pane drops the year while it is this one and keeps it for any other.
Week and month widen the pane to fit them, and the full page has room.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Paul LütznerandClaude Opus 5.5 committed 2026-09-24 13:30:45 +02:00
1 parent d9eb6f2863
commit a11ce99007
1 file changed
+9 -1
+9 -1
View File
@@ -154,7 +154,15 @@ Blocks:
{%- elseif view.value == 'month' -%}
{{ anchor|intl_date('yMMMM', false) }}
{%- else -%}
{{ anchor|intl_date('dMMMy', false) }}
{# The docked pane leaves this about seventy pixels beside its view
buttons, and "Sep 24, 2026" does not fit: it was cut to "Sep 24,
20…" on the one surface every desktop opens on. The year says
nothing there while it is this year, so the pane drops it and
keeps it for any other. Week and month widen the pane to fit
them (CalendarView::minimumPaneWidth()), so only these two views
need it. #}
{%- set thisYear = anchor|date('Y', false) == 'now'|date('Y') -%}
{{ anchor|intl_date(compact and thisYear ? 'dMMM' : 'dMMMy', false) }}
{%- endif -%}
</h2>