mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-08-17 04:24:22 +00:00
fix: strip lang: prefix in Languages panel display
This commit is contained in:
parent
5c6c266c85
commit
caa0464832
1 changed files with 10 additions and 7 deletions
|
|
@ -325,13 +325,16 @@ function ToolBreakdown({ projects, pw, bw, title, filterPrefix }: { projects: Pr
|
|||
return (
|
||||
<Panel title={title ?? 'Core Tools'} color={PANEL_COLORS.tools} width={pw}>
|
||||
<Text dimColor wrap="truncate-end">{''.padEnd(bw + 1 + nw)}{'calls'.padStart(7)}</Text>
|
||||
{sorted.slice(0, 10).map(([tool, calls]) => (
|
||||
<Text key={tool} wrap="truncate-end">
|
||||
<HBar value={calls} max={maxCalls} width={bw} />
|
||||
<Text> {fit(tool, nw)}</Text>
|
||||
<Text>{String(calls).padStart(7)}</Text>
|
||||
</Text>
|
||||
))}
|
||||
{sorted.slice(0, 10).map(([tool, calls]) => {
|
||||
const display = filterPrefix ? tool.slice(filterPrefix.length) : tool
|
||||
return (
|
||||
<Text key={tool} wrap="truncate-end">
|
||||
<HBar value={calls} max={maxCalls} width={bw} />
|
||||
<Text> {fit(display, nw)}</Text>
|
||||
<Text>{String(calls).padStart(7)}</Text>
|
||||
</Text>
|
||||
)
|
||||
})}
|
||||
</Panel>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue