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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -13,7 +13,7 @@
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="manifest" href="/site.webmanifest" />
<script type="module" crossorigin src="/assets/index-Bt8bmX1W.js"></script>
<script type="module" crossorigin src="/assets/index-BGhVMB5J.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-CnRBRJ10.css">
</head>
<body>

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'