mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-17 19:59:33 +01:00
feat(header): resizable toolbar divider that collapses the usage readings as it narrows
This commit is contained in:
1 parent
002de32a08
commit
fa2d75c951
9 files changed
+467
-1
No files matched your search
@@ -3680,7 +3680,9 @@ class CodemanApp {
|
||||
seg('mo', pct(usage?.monthly), false),
|
||||
].filter(Boolean);
|
||||
if (!windows.length) return '';
|
||||
const label = labelled ? `<span class="pu-provider">${provider}</span>` : '';
|
||||
// data-short is what the narrowest header densities show instead of the name (header-divider.js).
|
||||
const short = { Claude: 'CL', Codex: 'CX', Copilot: 'CP' }[provider] ?? provider.slice(0, 2).toUpperCase();
|
||||
const label = labelled ? `<span data-short="${short}" class="pu-provider">${provider}</span>` : '';
|
||||
return `<span class="pu-row">${label}<span class="pu-windows">${windows.join('<span class="pu-sep">·</span>')}</span></span>`;
|
||||
};
|
||||
const rows = [row('Claude', data, true), row('Codex', data.codex, false), row('Copilot', data.copilot, false)].filter(
|
||||
|
||||
Reference in new issue
Block a user