File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -123,9 +123,9 @@ const BarGraph = (props) => {
123
123
classname [ i ] . addEventListener ( 'click' , animateButton , false ) ;
124
124
}
125
125
return (
126
- < div >
126
+ < div className = 'bargraph-position' >
127
127
< button
128
- className = " save-series-button"
128
+ className = ' save-series-button'
129
129
onClick = { ( e ) => {
130
130
dispatch ( save ( toStorage ) ) ;
131
131
} }
@@ -149,7 +149,7 @@ const BarGraph = (props) => {
149
149
yScale = { renderingScale }
150
150
width = { xMax }
151
151
height = { yMax }
152
- stroke = " black"
152
+ stroke = ' black'
153
153
strokeOpacity = { 0.1 }
154
154
xOffset = { snapshotIdScale . bandwidth ( ) / 2 }
155
155
/>
@@ -235,15 +235,15 @@ const BarGraph = (props) => {
235
235
/>
236
236
< Text
237
237
x = { - xMax / 2 }
238
- y = "15"
239
- transform = " rotate(-90)"
238
+ y = '15'
239
+ transform = ' rotate(-90)'
240
240
fontSize = { 12 }
241
- fill = " #FFFFFF"
241
+ fill = ' #FFFFFF'
242
242
>
243
243
Rendering Time (ms)
244
244
</ Text >
245
245
< br />
246
- < Text x = { xMax / 2 + 15 } y = { yMax + 70 } fontSize = { 12 } fill = " #FFFFFF" >
246
+ < Text x = { xMax / 2 + 15 } y = { yMax + 70 } fontSize = { 12 } fill = ' #FFFFFF' >
247
247
Snapshot ID
248
248
</ Text >
249
249
</ svg >
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ const StateRoute = (props: StateRouteProps) => {
159
159
formatted = { ( val ) => ( ( val / 100 ) * 1000 ) . toFixed ( 2 ) + ' ms' }
160
160
label = 'FCP'
161
161
name = 'First Contentful Paint'
162
- description = 'How long it takes browser to render first piece of DOM content.'
162
+ description = 'Measures the time it takes the browser to render the first piece of DOM content. No benchmark .'
163
163
/>
164
164
< WebMetrics
165
165
color = { TTFBColor }
Original file line number Diff line number Diff line change 190
190
grid-template-columns : auto auto ;
191
191
align-items : center ;
192
192
justify-content : center ;
193
- margin-top : 25% ;
194
193
}
195
194
196
195
// container for metrics
209
208
background-color : #51565e ;
210
209
border-radius : 5px ;
211
210
}
211
+
212
+ .bargraph-position {
213
+ position : relative ;
214
+ }
You can’t perform that action at this time.
0 commit comments