Changeset 859bace0 in Klonkt for src/views/pages


Ignore:
Timestamp:
06/19/2026 12:20:35 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
7d81265
Parents:
2d596cf
Message:

fix(editor): mobile writing field as bounded box with internal scroll

The field grew with the text → the whole page scrolled to the caret on a
formatting command. On mobile now min-height 240 / max-height 62vh +
overflow auto: caret scroll stays within the box, the page does not jump,
and the toolbar sits sticky above it. Fullscreen resets max-height to none
(fills the page).

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

File:
1 edited

Legend:

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

    r2d596cf r859bace0  
    446446  background: var(--paper);
    447447}
    448 /* In fullscreen vult het schrijfveld de resterende ruimte en scrollt het zelf. */
     448/* In fullscreen vult het schrijfveld de resterende ruimte en scrollt het zelf
     449   (max-height: none overschrijft de mobiele box-begrenzing hieronder). */
    449450.pe-editor-frame.pe-fs .pe-editor {
    450   flex: 1 1 auto; min-height: 0; height: auto;
     451  flex: 1 1 auto; min-height: 0; height: auto; max-height: none;
    451452}
    452453body.pe-fs-open { overflow: hidden; }
     
    468469}
    469470.pe-editor:focus { outline: none; }
     471/* Mobiel: begrens het schrijfveld tot een box met EIGEN interne scroll. Zo blijft
     472   de caret-scroll (die mobiel Chrome forceert bij een opmaak-commando) binnen de
     473   box i.p.v. de hele pagina te laten verspringen. De toolbar staat er sticky boven.
     474   In fullscreen vult het veld de hele pagina (regel hierboven wint via .pe-fs). */
     475@media (max-width: 768px) {
     476  .pe-editor { min-height: 240px; max-height: 62vh; }
     477}
    470478.pe-editor.is-dragover {
    471479  outline: 2px dashed var(--accent);
Note: See TracChangeset for help on using the changeset viewer.