Auto-growing name box for the new-project tile

Replace the plain <input> with a rows=1 <textarea> that grows to fit
its content on input, so a long or wrapped name stays fully visible
instead of scrolling. Enter still submits rather than adding a
newline, and the box resets to one row after a successful create.

Also make the tile's background transparent (dashed border stays) and
drop its 'Create a project' title, keeping just the Name field --
accessible label moved to aria-label since the placeholder now stands
alone.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-09-04 20:03:18 +01:00
co-authored by Claude Sonnet 5
parent 47429daaa6
commit 49c10673d2
2 changed files with 44 additions and 4 deletions
+9 -1
View File
@@ -361,6 +361,7 @@ h1 {
}
.project-card--new {
background: transparent;
border-style: dashed;
}
@@ -370,13 +371,20 @@ h1 {
font-size: 0.9rem;
}
.project-card--new input {
.project-card__name-input {
display: block;
width: 100%;
box-sizing: border-box;
padding: 0.55rem 0.7rem;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--bg);
color: var(--text);
font: inherit;
font-size: 1rem;
/* Grown in JS to fit its content -- no manual resize handle, no scrollbar. */
resize: none;
overflow: hidden;
}
/* --- project detail: cards ------------------------------------------ */