Changeset 8d054ca in Klonkt for src/views/pages/post.ejs


Ignore:
Timestamp:
06/27/2026 01:39:08 PM (2 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
923235e
Parents:
8951629
Message:

fix(ui): reply textareas no longer open huge (auto-resize skips hidden + caps height)

  • views/shell.ejs — the global textarea auto-resize measured scrollHeight even on textareas hidden inside a closed <details> (the fedi owner-reply box), producing a bad height that stuck as inline style so the field opened huge. Now it skips hidden textareas (they size on focus once visible) and respects a CSS max-height.
  • views/pages/post.ejs — give the comment/fedi-reply textarea a max-height (200px) so it opens at its min-height and scrolls past that instead of ballooning.
File:
1 edited

Legend:

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

    r8951629 r8d054ca  
    383383  resize: vertical;
    384384  min-height: 70px;
     385  max-height: 200px;
    385386  padding: 0.65rem 0.85rem;
    386387  border: 1px solid var(--rule);
Note: See TracChangeset for help on using the changeset viewer.