Changeset 7d81265 in Klonkt for src/views/pages/post-edit.ejs


Ignore:
Timestamp:
06/19/2026 12:24:21 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
9217e4e
Parents:
859bace0
Message:

fix(editor): toolbar sticky inside the scroll box on mobile

The frame is now the scroll box (max-height 70vh, overflow auto); the
text scrolls inside it and the formatting toolbar (position:sticky top:0)
stays pinned at the top of the box. Caret scroll stays within the box →
no page jump. Fullscreen is excluded.

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

File:
1 edited

Legend:

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

    r859bace0 r7d81265  
    469469}
    470470.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). */
     471/* Mobiel: het FRAME is de scroll-box. De opmaak-toolbar plakt sticky aan de
     472   bovenkant ervan en de tekst scrollt eronder → de toolbar blijft altijd in beeld
     473   binnen de box, én de caret-scroll (die mobiel Chrome forceert) blijft binnen de
     474   box i.p.v. de hele pagina te laten verspringen. Fullscreen (.pe-fs) is
     475   uitgezonderd: daar scrollt het veld zelf en vult het de pagina. */
    475476@media (max-width: 768px) {
    476   .pe-editor { min-height: 240px; max-height: 62vh; }
     477  .pe-editor-frame:not(.pe-fs) { max-height: 70vh; overflow-y: auto; }
     478  .pe-editor-frame:not(.pe-fs) .pe-editor { min-height: 240px; max-height: none; overflow: visible; }
    477479}
    478480.pe-editor.is-dragover {
Note: See TracChangeset for help on using the changeset viewer.