Changeset da4387b in Klonkt for src/views/shell.ejs


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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.