From e080715f3be30b4d50e035b4064a7dea66bec99b Mon Sep 17 00:00:00 2001 From: vincent Date: Sat, 29 Aug 2026 13:39:47 +0200 Subject: [PATCH] fix: search field never narrower than its own placeholder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src-tauri/tauri.conf.json | 6 +++--- src/components/TopBar.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 1b8bc3d..47dc157 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -13,9 +13,9 @@ "windows": [ { "title": "FlightTube", - "width": 1180, - "height": 780, - "minWidth": 1140, + "width": 1320, + "height": 820, + "minWidth": 1260, "minHeight": 620, "center": true, "titleBarStyle": "Overlay", diff --git a/src/components/TopBar.tsx b/src/components/TopBar.tsx index aff4bca..a7857fa 100644 --- a/src/components/TopBar.tsx +++ b/src/components/TopBar.tsx @@ -92,7 +92,7 @@ export default function TopBar({ value={search} onChange={(e) => onSearch(e.target.value)} 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`} />