diff --git a/src/render/page.test.ts b/src/render/page.test.ts index cd2dc97..48f04f1 100644 --- a/src/render/page.test.ts +++ b/src/render/page.test.ts @@ -42,10 +42,9 @@ describe("renderPage", () => { expect(html).toContain('aria-current="true"'); }); - it("includes mode toggle links", () => { + it("does not show mode toggle in UI (mode is URL-only)", () => { const html = renderPage("Test", "", defaultPrefs); - expect(html).toContain("VCR"); - expect(html).toContain("All Active"); + expect(html).not.toContain("All Active"); }); it("includes theme toggle links", () => { diff --git a/src/render/page.ts b/src/render/page.ts index 17dec92..fca180a 100644 --- a/src/render/page.ts +++ b/src/render/page.ts @@ -17,16 +17,7 @@ export function renderPage(title: string, bodyContent: string, prefs: Preference }) .join(" · "); - const modeLinks = [ - { key: "vcr", label: "VCR" }, - { key: "all", label: "All Active" }, - ] - .map(({ key, label }) => { - const isCurrent = key === prefs.mode; - const href = buildLink("/week", { ...prefs, mode: key }); - return `${label}`; - }) - .join(" | "); + const themeLinks = [ { key: "light", label: "☀️ Light" }, @@ -56,14 +47,14 @@ export function renderPage(title: string, bodyContent: string, prefs: Preference

📻 VCR Calendar

Subject to change, not official

${bodyContent}
diff --git a/src/render/week-grid.ts b/src/render/week-grid.ts index 8b63b98..a2b25ff 100644 --- a/src/render/week-grid.ts +++ b/src/render/week-grid.ts @@ -69,9 +69,10 @@ export function renderWeekGrid(shows: Show[], prefs: Preferences): string { for (let i = 0; i < 7; i++) { const dayDate = new Date(weekBounds.start); dayDate.setUTCDate(dayDate.getUTCDate() + i); + const month = dayDate.getUTCMonth() + 1; const dateNum = dayDate.getUTCDate(); const todayClass = dateKeyFromUtcDate(dayDate) === todayKey ? " day-today" : ""; - html += `
${DAY_SHORT[i]}
${dateNum}
`; + html += `
${DAY_SHORT[i]} ${month}/${dateNum}
`; } html += '
'; diff --git a/src/style/css.ts b/src/style/css.ts index 7644c88..e2a2126 100644 --- a/src/style/css.ts +++ b/src/style/css.ts @@ -192,10 +192,29 @@ ${DARK_VARS} color: var(--text); } -.controls-reset { +.controls-row--reset { + justify-content: flex-end; + gap: 0.5rem; +} + +.reset-link { font-size: 0.8125rem; color: var(--text-muted); - margin-left: auto; + padding: 0.15rem 0.5rem; + border-radius: 4px; +} + +.reset-link:hover { + color: var(--text); + background: var(--today-highlight); + text-decoration: none; +} + +.reset-hint { + font-size: 0.6875rem; + color: var(--text-muted); + opacity: 0.6; + font-style: italic; } /* Timezone picker */ @@ -339,12 +358,11 @@ ${DARK_VARS} .show-block__name { font-weight: 500; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; display: flex; align-items: center; - gap: 0.35rem; + gap: 0.25rem 0.35rem; + flex-wrap: wrap; + overflow: hidden; } .show-block__time { @@ -582,7 +600,7 @@ ${DARK_VARS} } .week-grid { - grid-template-columns: 5.5rem repeat(7, 120px) 5.5rem; + grid-template-columns: 5.5rem repeat(7, 120px); min-width: max-content; } @@ -592,13 +610,7 @@ ${DARK_VARS} } .week-grid__gutter--right { - position: sticky; - right: 0; - z-index: 2; - } - - .controls-reset { - margin-left: 0; + display: none; } } `;