File tree Expand file tree Collapse file tree 4 files changed +43
-11
lines changed Expand file tree Collapse file tree 4 files changed +43
-11
lines changed Original file line number Diff line number Diff line change @@ -191,14 +191,17 @@ function ActionContainer(props: ActionContainerProps): JSX.Element {
191
191
className = 'toggle'
192
192
>
193
193
{ ' ' }
194
- { /* JR: updating onClick to stop propgation so that it detects the click only on the arrow and not the parent*/ }
194
+ { /* JR: updating onClick to stop propagation so that it detects the click only on the arrow and not the parent*/ }
195
195
< i />
196
196
</ a >
197
197
</ aside >
198
+ < div className = 'collapse' > Collapse</ div >
198
199
</ div >
199
200
< a type = 'button' id = 'recordBtn' onClick = { toggleRecord } >
200
201
< i />
201
- < div style = { { display : 'flex' , alignItems : 'center' } } > Toggle Record</ div >
202
+ < div style = { { display : 'flex' , alignItems : 'center' , textAlign : 'right' } } >
203
+ Toggle Record
204
+ </ div >
202
205
{ recordingActions ? < Switch defaultChecked /> : < Switch /> }
203
206
</ a >
204
207
</ div >
Original file line number Diff line number Diff line change @@ -37,6 +37,10 @@ function MainContainer(): JSX.Element {
37
37
const toggleElem = document . querySelector ( 'aside' ) ; // aside is like an added text that appears "on the side" aside some text.
38
38
toggleElem . classList . toggle ( 'no-aside' ) ; // toggles the addition or the removal of the 'no-aside' class
39
39
40
+ //JR: added for collapse label
41
+ const collapse = document . querySelector ( '.collapse' ) ;
42
+ collapse . classList . toggle ( 'hidden' ) ;
43
+
40
44
const recordBtn = document . getElementById ( 'recordBtn' ) ;
41
45
42
46
if ( recordBtn . style . display === 'none' ) {
Original file line number Diff line number Diff line change @@ -304,17 +304,31 @@ aside {
304
304
background : #242529 ;
305
305
color : #fff ;
306
306
transition : width 1s ;
307
+ width : 100% ; // JR
307
308
}
308
309
309
310
.no-aside {
310
311
width : 45px ;
311
312
// margin-right: 15px;
312
313
}
313
314
315
+ // JR added for collapse label
316
+ .collapse {
317
+ display : flex ;
318
+ align-items : center ;
319
+ justify-content : flex-start ;
320
+ background : #242529 ;
321
+ }
322
+
323
+ .hidden {
324
+ display : none ;
325
+ }
326
+
314
327
.toggle {
315
- display : block ;
316
- position : relative ;
317
- margin-top : 1rem ;
328
+ // display: block;
329
+ // position: relative;
330
+ // margin-top: 1rem;
331
+ height : 100% ; // JR
318
332
}
319
333
320
334
/* toggle i handles arrow animation */
@@ -330,8 +344,8 @@ aside {
330
344
}
331
345
332
346
.toggle i {
333
- top : 8 px ;
334
- left : 9 px ;
347
+ top : 16 px ;
348
+ left : 10 px ;
335
349
display : block ;
336
350
background : $blue-brand ;
337
351
}
@@ -365,7 +379,14 @@ aside {
365
379
}
366
380
367
381
#arrow {
368
- margin-bottom : 40px ;
382
+ // margin-bottom: 40px;
383
+ // display: flex;
384
+ // justify-content: flex-start;
385
+
386
+ // JR
387
+ height : 100% ;
388
+ display : grid ;
389
+ grid-template-columns : 45px 1fr ;
369
390
}
370
391
371
392
/* ^ sidebar button open and closing functionality */
Original file line number Diff line number Diff line change 16
16
}
17
17
18
18
.actionToolContainer {
19
- display : flex ;
20
- justify-content : space-between ;
21
- align-items : center ;
19
+ // display: flex;
20
+ // justify-content: space-between;
21
+ // align-items: center;
22
+
23
+ // JR
22
24
height : 40px ;
25
+ display : grid ;
26
+ grid-template-columns : 1fr 1fr ;
23
27
}
24
28
25
29
#recordBtn .fa-regular {
You can’t perform that action at this time.
0 commit comments