Skip to content

Commit 1d2e366

Browse files
committed
fixed the fixed badge width
1 parent e8cb9da commit 1d2e366

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/PerfProblemSimulator/wwwroot/css/dashboard.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,11 +1065,15 @@ body {
10651065
font-weight: 700;
10661066
color: var(--color-text);
10671067
transition: color var(--transition-fast);
1068-
min-width: 5.5em;
1068+
min-width: 4.5em;
10691069
text-align: right;
10701070
display: inline-block;
10711071
}
10721072

1073+
#latencyTimeouts {
1074+
min-width: 1.5em;
1075+
}
1076+
10731077
.latency-value.good {
10741078
color: var(--color-success);
10751079
}

src/PerfProblemSimulator/wwwroot/js/dashboard.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,8 +695,6 @@ function formatLatency(ms) {
695695
return (ms / 1000).toFixed(1) + 's';
696696
} else if (ms >= 1000) {
697697
return (ms / 1000).toFixed(2) + 's';
698-
} else if (ms >= 100) {
699-
return Math.round(ms) + 'ms';
700698
} else {
701699
return ms.toFixed(1) + 'ms';
702700
}

0 commit comments

Comments
 (0)