Changeset 8d054ca in Klonkt
- Timestamp:
- 06/27/2026 01:39:08 PM (2 months ago)
- Branches:
- main
- Children:
- 923235e
- Parents:
- 8951629
- Location:
- src/views
- Files:
-
- 2 edited
-
pages/post.ejs (modified) (1 diff)
-
shell.ejs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/views/pages/post.ejs
r8951629 r8d054ca 383 383 resize: vertical; 384 384 min-height: 70px; 385 max-height: 200px; 385 386 padding: 0.65rem 0.85rem; 386 387 border: 1px solid var(--rule); -
src/views/shell.ejs
r8951629 r8d054ca 684 684 function autoSize(ta) { 685 685 if (!ta || ta.tagName !== 'TEXTAREA') return; 686 ta.style.overflowY = 'hidden'; 686 // Skip hidden textareas (e.g. inside a closed <details> or an unopened reply 687 // box): measuring scrollHeight there yields a bad height that sticks as inline 688 // style and makes the field open huge. They get sized on focus once visible. 689 if (ta.offsetParent === null && ta.offsetHeight === 0) return; 687 690 ta.style.height = 'auto'; 688 ta.style.height = ta.scrollHeight + 'px'; 691 var maxH = parseFloat(getComputedStyle(ta).maxHeight); 692 var sh = ta.scrollHeight; 693 var h = (maxH && !isNaN(maxH)) ? Math.min(sh, maxH) : sh; // respect a CSS max-height 694 ta.style.height = h + 'px'; 695 ta.style.overflowY = sh > h ? 'auto' : 'hidden'; 689 696 } 690 697 function sizeAll(root) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)