Changeset b31c119 in Klonkt


Ignore:
Timestamp:
06/30/2026 11:51:25 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
366c13c
Parents:
2a58d76
Message:

fix(cirkel): cover videos are decorative — no <video> right-click menu/controls

A cover that federated as an MP4 renders as a real <video>, so right-click
showed the browser's video menu (Loop, Show all controls, Picture in
picture, Save video as) and clicks hit the video instead of the tile link.
pointer-events:none lets clicks + right-click fall through to the tile <a>
(normal link menu, whole tile clickable); autoplay is unaffected.

  • src/assets/css/style.css — pointer-events:none on cover videos (grid/list/post)
  • src/views/shell.ejs — style.css buster v66 -> v67

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

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/assets/css/style.css

    r2a58d76 rb31c119  
    24022402.grid-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: opacity .4s ease; }
    24032403.grid-tile-img.is-loading { opacity: 0; }
     2404/* Cover videos are decorative, not players: let clicks + right-click pass through to the
     2405   tile link so you get the normal link menu (not the browser's <video> menu/controls).
     2406   Autoplay is independent of pointer-events, so the video still plays. */
     2407video.grid-tile-img,
     2408.post-list-cover video,
     2409.post-cover video { pointer-events: none; }
    24042410.grid-tile:hover { transform: scale(0.98); }
    24052411.grid-tile-overlay {
  • src/views/shell.ejs

    r2a58d76 rb31c119  
    216216
    217217<!-- v9 stylesheet (full palette system) -->
    218 <link rel="stylesheet" href="/assets/css/style.css?v=66">
     218<link rel="stylesheet" href="/assets/css/style.css?v=67">
    219219<script>
    220220/* iOS safe-area, built by hand. env(safe-area-inset-top) resolves to 0 on this iOS in
Note: See TracChangeset for help on using the changeset viewer.