Changeset 11a6871 in Klonkt


Ignore:
Timestamp:
06/15/2026 04:10:26 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
af5407f
Parents:
6117035
Message:

style: grey out view-switcher on a standalone post

Timeline/Grid + 2/3/4-columns make no sense on a post detail page (no
feed to switch). We grey out the bar (opacity 0.4) + make it unclickable
(pointer-events:none) instead of hiding it, so the chrome doesn't shift
during HTMX navigation. Works via body.on-post (class switches client-side
on HTMX nav).

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

File:
1 edited

Legend:

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

    r6117035 r11a6871  
    6262   visible so the user keeps a consistent return-to-feed control. */
    6363.on-admin .view-switcher-wrap { display: none; }
     64
     65/* Op een losse post slaat de feed-weergave (Tijdlijn/Grid + 2/3/4 kolommen)
     66   nergens op — er is geen feed om te schakelen. We laten 'm staan (geen layout-
     67   sprong bij HTMX-navigatie) maar grijzen 'm uit + maken 'm onklikbaar.
     68   Body-class wisselt client-side bij HTMX-nav, dus dit werkt ook zonder reload. */
     69.on-post .view-switcher-wrap {
     70  opacity: 0.4;
     71  pointer-events: none;
     72  user-select: none;
     73}
    6474
    6575/* Spacing between switcher-bar and the page content below.
Note: See TracChangeset for help on using the changeset viewer.