From eb743608d1c95a0f84bfdfac75d6f1deb4fe6558 Mon Sep 17 00:00:00 2001 From: Ari <149393150+A21-devs@users.noreply.github.com> Date: Tue, 1 Dec 2026 10:27:33 -0500 Subject: [PATCH] Status bar: stay on one line and cut a long data folder path The bar had no nowrap and nothing that could shrink, so at the 900 px minimum width a long data folder wrapped onto a second line and got clipped. Items keep their size now, and only the path shrinks with an ellipsis. The full path is still in the tooltip, and the button gets an accessible name that says what it does. --- src/renderer/src/components/StatusBar.tsx | 4 ++-- src/renderer/src/styles.css | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/components/StatusBar.tsx b/src/renderer/src/components/StatusBar.tsx index 06ac3ab..ed9de5c 100644 --- a/src/renderer/src/components/StatusBar.tsx +++ b/src/renderer/src/components/StatusBar.tsx @@ -19,8 +19,8 @@ export default function StatusBar({ host, running }: { host: HostInfo | null; ru {running} running - ) diff --git a/src/renderer/src/styles.css b/src/renderer/src/styles.css index 38ab876..e515236 100644 --- a/src/renderer/src/styles.css +++ b/src/renderer/src/styles.css @@ -228,11 +228,19 @@ fieldset:disabled input, fieldset:disabled select { color: var(--text-3); } padding: 0 10px; font-size: 11.5px; color: var(--text-3); background: var(--surface); border-top: 1px solid var(--line); + /* one line at any width: the items keep their size, only the data folder path gives way */ + white-space: nowrap; overflow: hidden; } +.statusbar > * { flex: none; } +.statusbar > .spacer { flex: 1; min-width: 0; } .sb-good { color: var(--run); } .sb-warn { color: var(--warn); } .sb-bad { color: var(--bad); } .sb-link { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; padding: 0; color: var(--text-3); font-size: 11.5px; } +.statusbar > .sb-link { flex: 0 1 auto; min-width: 0; } +.sb-link svg { flex: none; } +/* the full path is in the tooltip */ +.sb-path { overflow: hidden; text-overflow: ellipsis; } .sb-link:hover { color: var(--text); } /* ---------- empty state ---------- */