diff --git a/packages/devknobs/src/grab/tray.ts b/packages/devknobs/src/grab/tray.ts index 0c8f1ca..69e26db 100644 --- a/packages/devknobs/src/grab/tray.ts +++ b/packages/devknobs/src/grab/tray.ts @@ -99,7 +99,7 @@ export const TRAY_CSS = ` box-sizing: border-box; flex: none; width: 100%; - min-height: 24px; + min-height: 40px; max-height: 136px; padding: 4px 6px; overflow-y: auto; @@ -199,7 +199,7 @@ export function createTray(options: TrayOptions): Tray { node.setAttribute("aria-label", "Picked elements"); const list = element("div", "list"); const note = element("textarea"); - note.rows = 1; + note.rows = 2; if (typeof CSS === "undefined" || !CSS.supports("field-sizing", "content")) { note.addEventListener("input", () => { note.style.height = "auto"; diff --git a/packages/devknobs/test/grab-tray.test.ts b/packages/devknobs/test/grab-tray.test.ts index 3511056..cb93bae 100644 --- a/packages/devknobs/test/grab-tray.test.ts +++ b/packages/devknobs/test/grab-tray.test.ts @@ -21,6 +21,7 @@ describe("TRAY_CSS", () => { test("grows the note with its text up to a cap, and lets it be dragged taller", () => { expect(TRAY_CSS).toContain("field-sizing: content;"); + expect(TRAY_CSS).toContain("min-height: 40px;"); expect(TRAY_CSS).toContain("max-height: 136px;"); expect(TRAY_CSS).toContain("resize: vertical;"); expect(TRAY_CSS).not.toContain("resize: none;");