Changeset fee35fa in Klonkt for src


Ignore:
Timestamp:
06/18/2026 06:44:08 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
74544fb
Parents:
86793f9
Message:

Hub settings: hero preview properly full-width (object-fit cover instead of inline-block)

The preview wrapper was display:inline-block → the image didn't fill the width and
the card background showed on the right as an ugly dark patch. Now a full-width
banner with a fixed 16/7 ratio + object-fit:cover (representative of the real hero);
the overlay slider still works.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/admin-settings.ejs

    r86793f9 rfee35fa  
    152152      <div class="set-field">
    153153        <span style="font-weight:400;color:var(--ink-muted);font-size:0.9rem">Voorbeeld (met overlay):</span>
    154         <div style="position:relative;display:inline-block;margin-top:0.4rem;max-width:100%">
    155           <img src="<%= hubHeroImage %>" alt="Hero-voorbeeld" style="display:block;max-width:100%;max-height:160px;border-radius:8px;border:1px solid var(--rule)">
    156           <div id="hero-ov-preview" style="position:absolute;inset:0;background:#000;opacity:<%= (hubHeroOverlay/100).toFixed(2) %>;border-radius:8px;pointer-events:none"></div>
     154        <div style="position:relative;width:100%;aspect-ratio:16/7;margin-top:0.4rem;border-radius:8px;overflow:hidden;border:1px solid var(--rule);background:var(--paper-2)">
     155          <img src="<%= hubHeroImage %>" alt="Hero-voorbeeld" style="display:block;width:100%;height:100%;object-fit:cover">
     156          <div id="hero-ov-preview" style="position:absolute;inset:0;background:#000;opacity:<%= (hubHeroOverlay/100).toFixed(2) %>;pointer-events:none"></div>
    157157        </div>
    158158      </div>
Note: See TracChangeset for help on using the changeset viewer.