diff --git a/src/dashboard.tsx b/src/dashboard.tsx index d14cd01..fc28b6b 100644 --- a/src/dashboard.tsx +++ b/src/dashboard.tsx @@ -325,13 +325,16 @@ function ToolBreakdown({ projects, pw, bw, title, filterPrefix }: { projects: Pr return ( {''.padEnd(bw + 1 + nw)}{'calls'.padStart(7)} - {sorted.slice(0, 10).map(([tool, calls]) => ( - - - {fit(tool, nw)} - {String(calls).padStart(7)} - - ))} + {sorted.slice(0, 10).map(([tool, calls]) => { + const display = filterPrefix ? tool.slice(filterPrefix.length) : tool + return ( + + + {fit(display, nw)} + {String(calls).padStart(7)} + + ) + })} ) }