MarkerTimeline set fixed decimals

Summary:
Set a fixed number of decimals for the 'ms'.
More doesn't give more insights and it messes with the overall layout.

Reviewed By: antonk52

Differential Revision: D43872203

fbshipit-source-id: 343278923ee27dbf884af41c997457bfba337ba8
This commit is contained in:
Lorenzo Blasa
2023-03-07 11:23:20 -08:00
committed by Facebook GitHub Bot
parent 305de28f4e
commit a7e523a77c

View File

@@ -230,7 +230,7 @@ export class MarkerTimeline extends Component<Props, State> {
number={
p.markerNames.length > 1 ? p.markerNames.length : undefined
}>
<Time>{p.timestamp}ms</Time>{' '}
<Time>{p.timestamp.toFixed(5)}ms</Time>{' '}
<Code code>{p.markerNames.join(', ')}</Code>
</Point>
);