Skip to content

Commit d9368cf

Browse files
committed
Finished Webmetric
Co-authored-by: AndrewByun <[email protected]> Co-authored-by: ctstamper <[email protected]> Co-authored-by: kelvinmirhan <[email protected]>
1 parent 3fecfed commit d9368cf

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/app/components/StateRoute/StateRoute.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ const StateRoute = (props: StateRouteProps) => {
155155
<WebMetrics
156156
color={CLSColor}
157157
series={webMetrics.CLS * 10}
158-
formatted={(val) => `CLS Score: ${(Number.isNaN(val) ? 'N/A' : `${val / 10}`)}`}
158+
formatted={(val) => `CLS Score: ${(Number.isNaN(val) ? 'N/A' : `${(val / 10).toFixed(3)}`)}`}
159159
label='Cumulative Layout Shift'
160160
name='Cumulative Layout Shift'
161161
description='Calculates the shifting of elements while the page is being downloaded and rendered.'

src/app/styles/layout/_stateContainer.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@
191191
.web-metrics-container {
192192
display: grid;
193193
grid-template-columns: auto auto;
194-
align-items: center;
195194
justify-content: center;
196195
}
197196

0 commit comments

Comments
 (0)