fix: search field never narrower than its own placeholder

The field could shrink to 160px and clip 'Search videos and channels'.
Its floor is now 17rem, wide enough for the full placeholder, with a
roomier max so it uses spare width.

The window minimum rises to 1260 to keep the control row on one line at
that floor, and the default size moves to 1320x820 — it was below the
new minimum, so every launch was being silently clamped.
This commit is contained in:
vincent
2026-08-29 13:39:47 +02:00
parent cc3a0b9c22
commit e080715f3b
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -13,9 +13,9 @@
"windows": [ "windows": [
{ {
"title": "FlightTube", "title": "FlightTube",
"width": 1180, "width": 1320,
"height": 780, "height": 820,
"minWidth": 1140, "minWidth": 1260,
"minHeight": 620, "minHeight": 620,
"center": true, "center": true,
"titleBarStyle": "Overlay", "titleBarStyle": "Overlay",
+1 -1
View File
@@ -92,7 +92,7 @@ export default function TopBar({
value={search} value={search}
onChange={(e) => onSearch(e.target.value)} onChange={(e) => onSearch(e.target.value)}
placeholder="Search videos and channels" placeholder="Search videos and channels"
className={`${INPUT} min-w-40 max-w-sm flex-1`} className={`${INPUT} min-w-[17rem] max-w-md flex-1`}
/> />
<span className="shrink-0 font-mono text-[11px] tabular-nums text-slate-400 dark:text-slate-500"> <span className="shrink-0 font-mono text-[11px] tabular-nums text-slate-400 dark:text-slate-500">