Render all months in sidebar

This commit is contained in:
2026-07-01 11:00:41 +02:00
parent ecaf3f4e12
commit 8c9b448bdc
4 changed files with 59 additions and 78 deletions
+9 -15
View File
@@ -757,23 +757,17 @@ aside.tree-sidebar:empty { display: none; }
}
/* === Diary calendar === */
.diary-cal-nav {
display: flex;
align-items: center;
justify-content: center;
gap: 0.2rem;
margin-bottom: 0.4rem;
/* Header row: "Chronological" on the left, the [year ▾] dropdown pushed to the
right. Composes with .row (flex + centering); space-between splits the two. */
.diary-cal .panel-header { justify-content: space-between; }
.diary-cal-drop .dropdown-menu { min-width: 0; }
/* Per-month caption above each grid, linking to that month's anchor. */
.diary-cal-month {
font-size: var(--font-sm);
margin: var(--space-3) 0 0.2rem;
}
.diary-cal-nav .diary-cal-drop + .diary-cal-heading { margin-left: var(--space-3); }
/* Anchor the month/year dropdowns to the nav row instead of the ▾ button so
the menu spans the full panel width rather than overflowing the 14rem
sidebar with its default min-width: 9rem. */
.diary-cal-nav { position: relative; }
.diary-cal-nav .diary-cal-drop { position: static; }
.diary-cal-nav .dropdown-menu { left: 0; right: 0; min-width: 0; }
.diary-cal-heading { color: var(--link); }
.diary-cal-heading:hover { color: var(--link-hover); }
.diary-cal-month a { color: var(--link); }
.diary-cal-month a:hover { color: var(--link-hover); }
.diary-cal-grid {
width: 100%;
border-collapse: collapse;