Changeset 65a0697 in Klonkt for src/views/partials/post-card.ejs


Ignore:
Timestamp:
06/30/2026 08:57:01 PM (2 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
e3a5aed
Parents:
f2943c1
Message:

fix(video-cover): size the swapped <video> like the cover <img> (post + list)

The iOS swap replaces the cover <img> with a <video>, but the post-page and list-cover CSS target
.post-cover img / .post-list-cover img (the element), so the <video> inherited no sizing and
rendered at its intrinsic height — too tall for the width. Add video to those selectors. Grid +
related covers already work (the img's class travels to the video, and those rules are class-based).

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/post-card.ejs

    rf2943c1 r65a0697  
    146146        color-mix(in srgb, var(--accent, #888) 6%, var(--paper-2)) 100%);
    147147  }
    148   .post-list-cover img {
     148  .post-list-cover img, .post-list-cover video {
    149149    width: 100%; height: 100%;
    150150    object-fit: cover;
Note: See TracChangeset for help on using the changeset viewer.