@@ -40,6 +40,8 @@ function StreamFullPanel({
4040 testBarHeight,
4141 testBarWinGifTop,
4242 testBarProgressGifTop,
43+ progressGifSize,
44+ winGifSize,
4345} ) {
4446 const leftEditor = useSelector ( leftEditorSelector ( roomMachineState ) ) ;
4547 const rightEditor = useSelector ( rightEditorSelector ( roomMachineState ) ) ;
@@ -195,14 +197,19 @@ function StreamFullPanel({
195197 style = { { fontSize : testBarFontSize } }
196198 className = "d-flex align-items-center cb-stream-widget-text italic mr-2 inverted-bar"
197199 >
198- { `${ Math . round ( ( leftOutput . successCount || 0 ) / ( leftOutput . assertsCount / 1 ) ) } /100` }
200+ { `${ Math . round ( ( ( leftOutput . successCount || 0 ) * 100 ) / ( leftOutput . assertsCount / 1 ) ) } /100` }
199201 </ div >
200202 </ div >
201203 < img
202204 alt = "И"
203205 src = { isWinnerLeft ? '/assets/images/stream/win_bv.png' : '/assets/images/stream/progress.png' }
204206 className = "position-absolute"
205- style = { { top : ( isWinnerLeft ? testBarWinGifTop : testBarProgressGifTop ) , left : '-30px' } }
207+ style = { {
208+ top : ( isWinnerLeft ? testBarWinGifTop : testBarProgressGifTop ) ,
209+ left : '-30px' ,
210+ width : ( isWinnerLeft ? winGifSize : progressGifSize ) ,
211+ height : ( isWinnerLeft ? winGifSize : progressGifSize ) ,
212+ } }
206213 />
207214 </ div >
208215 </ div >
@@ -265,14 +272,19 @@ function StreamFullPanel({
265272 style = { { fontSize : testBarFontSize } }
266273 className = "d-flex align-items-center cb-stream-widget-text italic inverted-bar mr-2"
267274 >
268- { `${ Math . round ( ( rightOutput . successCount || 0 ) / ( rightOutput . assertsCount || 1 ) ) } /100` }
275+ { `${ Math . round ( ( ( rightOutput . successCount || 0 ) * 100 ) / ( rightOutput . assertsCount || 1 ) ) } /100` }
269276 </ div >
270277 </ div >
271278 < img
272279 alt = "И"
273280 src = { isWinnerRight ? '/assets/images/stream/win_bv.png' : '/assets/images/stream/progress.png' }
274281 className = "position-absolute"
275- style = { { top : ( isWinnerRight ? testBarWinGifTop : testBarProgressGifTop ) , left : '-30px' } }
282+ style = { {
283+ top : ( isWinnerRight ? testBarWinGifTop : testBarProgressGifTop ) ,
284+ left : '-30px' ,
285+ width : ( isWinnerRight ? winGifSize : progressGifSize ) ,
286+ height : ( isWinnerRight ? winGifSize : progressGifSize ) ,
287+ } }
276288 />
277289 </ div >
278290 </ div >
0 commit comments