fix(tasks): remove spurious scrollbar on single-line add-task input

The add-task-bar title became a cdkTextareaAutosize textarea in the #8812
redesign. The directive measures the content and pins an exact px height,
so the element must never scroll itself, but it had no overflow rule and
fell back to a textarea's UA default of overflow:auto. That paints a
spurious scrollbar on a single line whenever the rendered line box
(16px * 1.4 = 22.4px) doesn't land exactly on the pinned integer height
(font/zoom/platform dependent).

Set overflow:hidden on .main-input; the directive keeps the caret in view
via programmatic scroll, so nothing is lost.
This commit is contained in:
Johannes Millan 2026-07-07 17:14:25 +02:00
parent 7445a9bb9e
commit 0d7e011081

View file

@ -92,6 +92,14 @@
padding: 0;
line-height: 1.4;
resize: none;
// cdkTextareaAutosize owns this field's height (it measures the content and
// pins an exact px height), so the textarea must never paint its own
// scrollbar. Without this the browser's default `overflow: auto` shows a
// spurious scrollbar on a single line whenever the rendered line box
// (16px × 1.4 = 22.4px) doesn't land exactly on the integer height the
// directive pins which happens depending on font/zoom/platform. The
// directive still keeps the caret in view via programmatic scroll.
overflow: hidden;
background: transparent;
color: inherit;
font-family: var(--font-primary-stack);