More compact hops label

This commit is contained in:
Jack Kingsman
2026-01-19 00:15:29 -08:00
parent 3cb5711b5c
commit bf03d76c33
5 changed files with 5 additions and 9 deletions
+1 -5
View File
@@ -70,11 +70,7 @@ interface HopCountBadgeProps {
function HopCountBadge({ paths, onClick, variant }: HopCountBadgeProps) {
const hopInfo = formatHopCounts(paths);
// Single direct: "(d)", otherwise "(d/1/3 hops)"
const label =
hopInfo.allDirect && !hopInfo.hasMultiple
? `(${hopInfo.display})`
: `(${hopInfo.display} hops)`;
const label = `(${hopInfo.display})`;
const className =
variant === 'header'