← Commit history

v1.4.1: Panel collapses at 620px, not 720px

John Lauer ·e8a2bbbd2a ·1mo ago ·parent bc36fec
6 files changed +22−96
Cargo.lock+1−1
@@ -10,7 +10,7 @@ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"  [[package]] name = "adom-parts-search"-version = "1.4.0"+version = "1.4.1" dependencies = [  "base64",  "clap",
Cargo.toml+1−1
@@ -1,6 +1,6 @@ [package] name = "adom-parts-search"-version = "1.4.0"+version = "1.4.1" edition = "2021" description = "Parts Search Electronics component search — CLI, backend HTTP service, and Hydrogen webview app" license = "MIT"
VERSION+1−1
@@ -1 +1 @@-1.4.0+1.4.1
package.json+1−40
@@ -38,44 +38,5 @@     "SKILL.md",     "BUILD-SKILL.md",     "CHANGELOG.md"-  ],-  "changelog": "Panel collapses at 620px, not 720px",-  "discovery_triggers": [-    "parts search",-    "find part",-    "source component",-    "source part",-    "compare distributors",-    "compare vendors",-    "Mouser or DigiKey",-    "BOM sourcing",-    "price this part",-    "where can I get",-    "check stock",-    "parts availability",-    "fastest delivery",-    "cheapest part",-    "component search",-    "part lookup",-    "price breaks"-  ],-  "discovery_pitch": "Search Mouser, DigiKey and JLCPCB in parallel with product photos; Mouser-preferred best-source pick. Say 'with parts search' to your AI.",-  "sample_prompts": [-    {-      "label": "source an STM32F103RBT6",-      "prompt": "source an STM32F103RBT6"-    },-    {-      "label": "where can I get an ESP32-S3-WROOM cheape",-      "prompt": "where can I get an ESP32-S3-WROOM cheapest and fastest"-    },-    {-      "label": "compare Mouser, DigiKey and JLCPCB for a",-      "prompt": "compare Mouser, DigiKey and JLCPCB for an LM555"-    },-    {-      "label": "price this BOM across distributors",-      "prompt": "price this BOM across distributors"-    }   ]-}\ No newline at end of file+}
page.json+8−49
@@ -33,25 +33,13 @@   },   "hero": {     "type": "image",-    "path": "screenshots/hero.png"+    "path": "docs/hero.png"   },   "sample_prompts": [-    {-      "label": "source an STM32F103RBT6",-      "prompt": "source an STM32F103RBT6"-    },-    {-      "label": "where can I get an ESP32-S3-WROOM cheape",-      "prompt": "where can I get an ESP32-S3-WROOM cheapest and fastest"-    },-    {-      "label": "compare Mouser, DigiKey and JLCPCB for a",-      "prompt": "compare Mouser, DigiKey and JLCPCB for an LM555"-    },-    {-      "label": "price this BOM across distributors",-      "prompt": "price this BOM across distributors"-    }+    "source an STM32F103RBT6",+    "where can I get an ESP32-S3-WROOM cheapest and fastest",+    "compare Mouser, DigiKey and JLCPCB for an LM555",+    "price this BOM across distributors"   ],   "discovery_triggers": [     "parts search",@@ -66,41 +54,12 @@     "where can I get",     "check stock",     "parts availability",-    "fastest delivery",-    "cheapest part",-    "component search",-    "part lookup",-    "price breaks"+    "fastest delivery"   ],-  "discovery_pitch": "Search Mouser, DigiKey and JLCPCB in parallel with product photos; Mouser-preferred best-source pick. Say 'with parts search' to your AI.",+  "discovery_pitch": "Search Mouser + DigiKey + JLCPCB in parallel from one interface, with product photos and a Mouser-preferred best-source pick.",   "metadata": {     "platform": "linux"   },   "category": "tools",-  "org": "adom",-  "description": "One search box across Mouser, DigiKey and JLCPCB. Parallel queries, side-by-side product photos, and a Mouser-preferred recommendation that reasons around stock and lead time. Dock Bar ready: serve, health, settings, Say it.",-  "dependencies": {-    "adom/adom-mouser": "*",-    "adom/adom-digikey": "*",-    "adom/adom-jlcpcb": "*"-  },-  "needs_sudo": false,-  "scripts": {-    "install": "./install.sh",-    "uninstall": "./uninstall.sh"-  },-  "files": [-    "bin/**",-    "skills/**",-    "docs/icon.svg",-    "dockbar.json",-    "install.sh",-    "uninstall.sh",-    "package.json",-    "README.md",-    "SKILL.md",-    "BUILD-SKILL.md",-    "CHANGELOG.md"-  ],-  "changelog": "Panel collapses at 620px, not 720px"+  "org": "adom" }\ No newline at end of file
src/app/ui.html+10−4
@@ -94,7 +94,7 @@ main>:first-child{margin-top:0} /* The newbie panel: ONE full-width band, a SIBLING of the app body (never    inside the app grid, or it stays a column however wide you style it).    Two columns: the demo button alone on the left, the prompts table right. */-.say{margin:0 0 16px;position:relative;display:grid;grid-template-columns:220px 1fr;gap:24px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px 44px 16px 16px;animation:fadein .25s ease}+.say{margin:0 0 16px;position:relative;display:grid;grid-template-columns:minmax(180px,220px) 1fr;gap:24px;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px 44px 16px 16px;animation:fadein .25s ease} .say[hidden]{display:none} .say-left{display:flex;align-items:flex-start;border-right:1px solid var(--border);padding-right:24px;margin-right:-24px} .say-right{min-width:0}@@ -390,6 +390,15 @@ select.sel:disabled{opacity:.5;cursor:not-allowed} .dh-controls .iconbtn.exit:hover{color:var(--red);border-color:rgba(248,81,73,.5)} @media (max-width:720px){#demoHud{left:10px;right:10px;transform:none;bottom:30px;width:auto}} +/* The panel collapses at 620px, NOT at the page's 720px breakpoint: the dock+   pane band is ~744-853px, so collapsing any higher would hide the two-column+   layout in the exact pane it exists for. 744px is in the test matrix. */+@media (max-width:620px){+  .say{grid-template-columns:1fr;gap:14px;padding:14px 40px 14px 14px}+  .say-left{border-right:none;border-bottom:1px solid var(--border);padding:0 0 14px;margin:0}+  .say-left .demo-btn{width:100%;justify-content:center;min-height:44px}+}+ /* ---- Responsive: reshape, do not shrink ---- */ @media (max-width:720px){   .brand .sub,.meta,.vsep{display:none}@@ -401,9 +410,6 @@ select.sel:disabled{opacity:.5;cursor:not-allowed}   .sb-controls .btn{flex:1 1 100%;min-height:44px}   .seg button{min-width:40px;height:36px}   .toggle-row{min-height:44px}-  .say{grid-template-columns:1fr;gap:14px;padding:14px 40px 14px 14px}-  .say-left{border-right:none;border-bottom:1px solid var(--border);padding:0 0 14px;margin:0}-  .say-left .demo-btn{width:100%;justify-content:center;min-height:44px}   .say-table{grid-template-columns:minmax(0,1fr) 72px;justify-content:stretch}   .say-try{padding:0 14px}   .app-footer .f-hide{display:none}