From 5a7e1abcc7641d4cddf41617cc8f899bbbb8e147 Mon Sep 17 00:00:00 2001 From: mawkone Date: Fri, 12 Jun 2026 15:03:16 -0700 Subject: [PATCH] design(preview): restore path input box with datalist dropdown for free-text navigation --- .../components/project/project-icon-rail.tsx | 48 +++++++++++++------ 1 file changed, 33 insertions(+), 15 deletions(-) diff --git a/vibn-frontend/components/project/project-icon-rail.tsx b/vibn-frontend/components/project/project-icon-rail.tsx index d2e452b..37364c4 100644 --- a/vibn-frontend/components/project/project-icon-rail.tsx +++ b/vibn-frontend/components/project/project-icon-rail.tsx @@ -243,6 +243,16 @@ function PreviewDeviceToggles() { }} /> + + / +
- + setCurrentPath("/" + e.target.value.replace(/^\//, "")) + } + placeholder="path (e.g. dashboard)" style={{ background: "transparent", border: "none", @@ -265,19 +280,22 @@ function PreviewDeviceToggles() { textOverflow: "ellipsis", fontFamily: "var(--font-mono), monospace", paddingRight: 16, - appearance: "none", - cursor: "pointer", }} - > - - - - - - - - - + onKeyDown={(e) => { + if (e.key === "Enter") { + triggerRefresh(); // force reload iframe + } + }} + /> + +