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 ---------- */