Skip to content

Commit 1b29f13

Browse files
committed
Bug Fix on Hookstate and Save Serie Hovering Bug
1 parent 9a2093c commit 1b29f13

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

src/app/components/BarGraph.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ const BarGraph = (props) => {
123123
classname[i].addEventListener('click', animateButton, false);
124124
}
125125
return (
126-
<div>
126+
<div className='bargraph-position'>
127127
<button
128-
className="save-series-button"
128+
className='save-series-button'
129129
onClick={(e) => {
130130
dispatch(save(toStorage));
131131
}}
@@ -149,7 +149,7 @@ const BarGraph = (props) => {
149149
yScale={renderingScale}
150150
width={xMax}
151151
height={yMax}
152-
stroke="black"
152+
stroke='black'
153153
strokeOpacity={0.1}
154154
xOffset={snapshotIdScale.bandwidth() / 2}
155155
/>
@@ -235,15 +235,15 @@ const BarGraph = (props) => {
235235
/>
236236
<Text
237237
x={-xMax / 2}
238-
y="15"
239-
transform="rotate(-90)"
238+
y='15'
239+
transform='rotate(-90)'
240240
fontSize={12}
241-
fill="#FFFFFF"
241+
fill='#FFFFFF'
242242
>
243243
Rendering Time (ms)
244244
</Text>
245245
<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'>
247247
Snapshot ID
248248
</Text>
249249
</svg>

src/app/components/StateRoute.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ const StateRoute = (props: StateRouteProps) => {
159159
formatted={(val) => ((val / 100) * 1000).toFixed(2) + ' ms'}
160160
label='FCP'
161161
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.'
163163
/>
164164
<WebMetrics
165165
color={TTFBColor}

src/app/styles/layout/_stateContainer.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@
190190
grid-template-columns: auto auto;
191191
align-items: center;
192192
justify-content: center;
193-
margin-top: 25%;
194193
}
195194

196195
//container for metrics
@@ -209,3 +208,7 @@
209208
background-color: #51565e;
210209
border-radius: 5px;
211210
}
211+
212+
.bargraph-position {
213+
position: relative;
214+
}

0 commit comments

Comments
 (0)