Changeset da4387b in Klonkt


Ignore:
Timestamp:
06/20/2026 07:47:56 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
1eff06a
Parents:
b200738
Message:

fix(nav): stale page class after htmx nav + Agenda-active white

  • PAGE_CLASSES (htmx body-class sync) was missing on-shows/on-downloads/feature- and feed-classes → old class lingered ("on-shows ... on-home") → Timeline/Grid stayed grey on the feed after visiting calendar/downloads. Now all page classes stripped + set correctly.
  • .vs-agenda.is-active now white pill (var(--ink)/var(--paper)) instead of dark.

Co-Authored-By: Claude <noreply@…>

Location:
src/views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/shared-styles.ejs

    rb200738 rda4387b  
    5050}
    5151.vs-agenda:hover { color: var(--ink); }
    52 .vs-agenda.is-active { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
     52/* Agenda actief op de agendapagina = wit pilletje (zelfde look als de andere
     53   actieve pill-knoppen: lichte achtergrond, donkere tekst). */
     54.vs-agenda.is-active { background: var(--ink); color: var(--paper); }
    5355
    5456.grid-cols-picker {
  • src/views/shell.ejs

    rb200738 rda4387b  
    328328  // we opnieuw wat de server stuurde. 'on-auth' staat erbij zodat het login-
    329329  // focusscherm óók via htmx z'n styling krijgt (geen chrome, geen tab, audio op 0).
    330   var PAGE_CLASSES = ['on-home','on-post','on-special','on-archive','on-search','on-admin','on-auth'];
     330  var PAGE_CLASSES = ['on-home','on-post','on-special','on-archive','on-search','on-admin','on-auth',
     331    'on-shows','on-downloads','on-download','on-epk','on-linkbio','on-newsletter',
     332    'on-tag','on-type','on-user','on-cirkel','on-hub','on-chat'];
    331333
    332334  document.body.addEventListener('pcmsNav', function(ev) {
Note: See TracChangeset for help on using the changeset viewer.