forked from iarv/Remote-Terminal-for-MeshCore
More compact hops label
This commit is contained in:
File diff suppressed because one or more lines are too long
1
frontend/dist/assets/index-BGhVMB5J.js.map
vendored
Normal file
1
frontend/dist/assets/index-BGhVMB5J.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
1
frontend/dist/assets/index-Bt8bmX1W.js.map
vendored
1
frontend/dist/assets/index-Bt8bmX1W.js.map
vendored
File diff suppressed because one or more lines are too long
2
frontend/dist/index.html
vendored
2
frontend/dist/index.html
vendored
@@ -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>
|
||||
|
||||
@@ -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