Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/renderer/src/components/StatusBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export default function StatusBar({ host, running }: { host: HostInfo | null; ru
</span>
<span>{running} running</span>
<span className="spacer" />
<button className="sb-link" onClick={() => window.vmm.openDataFolder()} title={host.dataRoot}>
<FolderOpen size={13} /> {host.dataRoot}
<button className="sb-link" onClick={() => window.vmm.openDataFolder()} title={host.dataRoot} aria-label={`Open data folder ${host.dataRoot}`}>
<FolderOpen size={13} aria-hidden /> <span className="sb-path">{host.dataRoot}</span>
</button>
</footer>
)
Expand Down
8 changes: 8 additions & 0 deletions src/renderer/src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: an end ellipsis hides the most specific part of a path (a long D: path loses its last folder). A middle ellipsis would read better, but it needs measuring in JS, and the tooltip has the full path. Fine for now.

.sb-link:hover { color: var(--text); }

/* ---------- empty state ---------- */
Expand Down
Loading