File tree Expand file tree Collapse file tree 3 files changed +22
-10
lines changed Expand file tree Collapse file tree 3 files changed +22
-10
lines changed Original file line number Diff line number Diff line change @@ -146,9 +146,11 @@ function ActionContainer(props: ActionContainerProps): JSX.Element {
146
146
) ;
147
147
} ,
148
148
) ;
149
- useEffect ( ( ) => {
150
- setActionView ( true ) ;
151
- } , [ setActionView ] ) ;
149
+
150
+ // JR: this is questionable, why would you always set it to true?
151
+ // useEffect(() => {
152
+ // setActionView(true);
153
+ // }, [setActionView]);
152
154
153
155
// Function sends message to background.js which sends message to the content script
154
156
const toggleRecord = ( ) : void => {
@@ -181,12 +183,21 @@ function ActionContainer(props: ActionContainerProps): JSX.Element {
181
183
< div className = 'actionToolContainer' >
182
184
< div id = 'arrow' >
183
185
< aside className = 'aside' >
184
- < a onClick = { toggleActionContainer } className = 'toggle' >
186
+ < a
187
+ onClick = { ( e ) => {
188
+ e . stopPropagation ;
189
+ toggleActionContainer ( ) ;
190
+ } }
191
+ className = 'toggle'
192
+ >
193
+ { ' ' }
194
+ { /* JR: updating onClick to stop propgation so that it detects the click only on the arrow and not the parent*/ }
185
195
< i />
186
196
</ a >
187
197
</ aside >
188
198
</ div >
189
199
< a type = 'button' id = 'recordBtn' onClick = { toggleRecord } >
200
+ < i />
190
201
< div style = { { display : 'flex' , alignItems : 'center' } } > Toggle Record</ div >
191
202
{ recordingActions ? < Switch defaultChecked /> : < Switch /> }
192
203
</ a >
Original file line number Diff line number Diff line change 1
1
@import url (' https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap' );
2
2
3
-
4
3
.save-series-button {
5
4
padding : 3px ;
6
5
outline : transparent ;
@@ -308,8 +307,8 @@ aside {
308
307
}
309
308
310
309
.no-aside {
311
- width : 30 px ;
312
- margin-right : 15px ;
310
+ width : 45 px ;
311
+ // margin-right: 15px;
313
312
}
314
313
315
314
.toggle {
@@ -349,6 +348,7 @@ aside {
349
348
.toggle i ::before {
350
349
content : ' ' ;
351
350
display : block ;
351
+ // top: -5px;
352
352
}
353
353
354
354
.toggle i ::before {
@@ -372,7 +372,7 @@ aside {
372
372
.reconnect-button-pop-up {
373
373
padding : 3px ;
374
374
outline : transparent ;
375
- background : $red-color-gradient ;
375
+ background : $red-color-gradient ;
376
376
color : $text-color !important ;
377
377
border : none ;
378
378
border-radius : 3px ;
@@ -405,7 +405,7 @@ aside {
405
405
.close-icon-pop-up {
406
406
cursor : pointer ;
407
407
color : $text-color ;
408
- font-size : 20px ;
408
+ font-size : 20px ;
409
409
padding-right : 8px ;
410
410
color : black ;
411
411
}
@@ -430,4 +430,4 @@ aside {
430
430
color : #d72828 ;
431
431
margin-left : 5px ;
432
432
margin-right : -22px ;
433
- }
433
+ }
Original file line number Diff line number Diff line change 19
19
display : flex ;
20
20
justify-content : space-between ;
21
21
align-items : center ;
22
+ height : 40px ;
22
23
}
23
24
24
25
#recordBtn .fa-regular {
You can’t perform that action at this time.
0 commit comments