mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-05-17 23:06:05 +02:00
More compact hops label
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user