Changeset 5f47671 in Klonkt for src/assets


Ignore:
Timestamp:
06/20/2026 02:37:34 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
16b0c00
Parents:
1720482
Message:

fix: tablet opens full-player + clean search snippet

  • audio-player: the mini-player click only jumps to the post on true desktop (≥1200, no full-player). Tablet + phone now open the full-player (sheet), like mobile. (Was: ≥768 counted as desktop → tablet jumped to the post.) buster audio-player.js?v=20.
  • search: FTS snippet is cleaned up — shortcodes ([[playlist:…]]) and markdown removed, <mark> highlights kept; falls back to the excerpt if nothing readable remains.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/assets/js/audio-player.js

    r1720482 r5f47671  
    605605  expandTrigger.addEventListener('click', () => {
    606606    const t = queue[currentIndex];
    607     const isDesktop = window.matchMedia && window.matchMedia('(min-width: 768px)').matches;
    608     if (isDesktop && t) {
     607    // Alleen op échte desktop (≥1200, geen full-player) springen we naar de post.
     608    // Tablet + telefoon hebben een full-player → open die (zoals mobiel).
     609    const jumpToPost = !hasFullPlayer();
     610    if (jumpToPost && t) {
    609611      // 1) Track speelde vanuit een post → die URL kennen we al.
    610612      if (t.postUrl) { goToPost(t.postUrl, t.id); return; }
Note: See TracChangeset for help on using the changeset viewer.