Changeset 5a394e5 in Klonkt


Ignore:
Timestamp:
06/21/2026 04:27:03 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
015ce46
Parents:
48ebfa7
Message:

fix(editor): empty edit dialog on mobile — crop zone had no height

.imed-stage was flex:1 without an explicit height → collapsed to 0px in the
flex column, so Cropper got no space and the dialog only showed the buttons
(no image). Now a fixed stage height (58vh) + cropper container forced to
100% width/height.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/post-edit.ejs

    r48ebfa7 r5a394e5  
    963963}
    964964.imed-stage {
    965   flex: 1 1 auto; min-height: 0;
     965  height: 58vh; flex: 0 0 auto;
    966966  background: var(--paper-2, rgba(128,128,128,.08)); border-radius: 10px; overflow: hidden;
    967967}
    968 /* Cropper heeft een blok-img met begrensde hoogte nodig. */
    969968.imed-stage img { display: block; max-width: 100%; }
    970 .imed-stage .cropper-container { max-height: 64vh; }
     969/* Cropper z'n container moet de volle stage-hoogte vullen — anders klapt 'ie dicht
     970   in een flex-kolom zonder expliciete hoogte → leeg bewerk-venster (geen afbeelding). */
     971.imed-stage .cropper-container { width: 100% !important; height: 100% !important; }
    971972.imed-tools {
    972973  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
Note: See TracChangeset for help on using the changeset viewer.