mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-15 04:12:25 +00:00
feat(kanban): convert inline-create title input to multiline textarea
- Changed Input component to native textarea for task creation - Removed Enter-to-submit behavior (use Create button instead) - Added proper styling: border, padding, rounded corners, focus ring - 2-row default height with vertical resize and max-height cap - Escape still cancels the form
This commit is contained in:
parent
498c01406f
commit
b93c9f6393
1 changed files with 3 additions and 3 deletions
6
plugins/kanban/dashboard/dist/index.js
vendored
6
plugins/kanban/dashboard/dist/index.js
vendored
|
|
@ -1756,18 +1756,18 @@
|
||||||
: "workspace path (optional, derived from assignee if blank)";
|
: "workspace path (optional, derived from assignee if blank)";
|
||||||
|
|
||||||
return h("div", { className: "hermes-kanban-inline-create" },
|
return h("div", { className: "hermes-kanban-inline-create" },
|
||||||
h(Input, {
|
h("textarea", {
|
||||||
value: title,
|
value: title,
|
||||||
onChange: function (e) { setTitle(e.target.value); },
|
onChange: function (e) { setTitle(e.target.value); },
|
||||||
onKeyDown: function (e) {
|
onKeyDown: function (e) {
|
||||||
if (e.key === "Enter") { e.preventDefault(); submit(); }
|
|
||||||
if (e.key === "Escape") props.onCancel();
|
if (e.key === "Escape") props.onCancel();
|
||||||
},
|
},
|
||||||
placeholder: props.columnName === "triage"
|
placeholder: props.columnName === "triage"
|
||||||
? "Rough idea — AI will spec it…"
|
? "Rough idea — AI will spec it…"
|
||||||
: "New task title…",
|
: "New task title…",
|
||||||
autoFocus: true,
|
autoFocus: true,
|
||||||
className: "h-8 text-sm",
|
className: "text-sm min-h-[2rem] max-h-32 resize-y w-full border border-input bg-transparent px-2 py-1 rounded-md focus:outline-none focus:ring-2 focus:ring-ring",
|
||||||
|
rows: 2,
|
||||||
}),
|
}),
|
||||||
h("div", { className: "flex gap-2" },
|
h("div", { className: "flex gap-2" },
|
||||||
h(Input, {
|
h(Input, {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue