@@ -380,46 +380,57 @@ const CustomizationPanel = ({ isThemeLight }): JSX.Element => {
380
380
document . removeEventListener ( 'keydown' , keyBindedFunc ) ;
381
381
} ;
382
382
} , [ ] ) ;
383
-
383
+
384
+ if ( state . canvasFocus . childId === null ) {
385
+ return (
386
+ < div className = "column right" id = "rightContainer" style = { style } >
387
+ < ProjectManager />
388
+ < div className = "rightPanelWrapper" >
389
+ < div >
390
+ < div className = { classes . rootConfigHeader } >
391
+ < h4
392
+ className = {
393
+ isThemeLight
394
+ ? classes . lightThemeFontColor
395
+ : classes . darkThemeFontColor
396
+ }
397
+ >
398
+ Parent Component:
399
+ < br />
400
+ < br />
401
+ < span className = { classes . rootCompName } > { configTarget . name } </ span >
402
+ </ h4 >
403
+ </ div >
404
+ </ div >
405
+ </ div >
406
+ < ProjectManager />
407
+ </ div >
408
+ )
409
+ }
384
410
return (
385
411
< div className = "column right" id = "rightContainer" style = { style } >
386
412
< ProjectManager />
387
413
{ /* -----------------------------MOVED PROJECT MANAGER-------------------------------------- */ }
388
414
< div className = "rightPanelWrapper" >
389
415
< div >
390
416
< div className = { classes . configHeader } >
391
- { configTarget . child ? (
392
- < h4 >
393
- Instance of
394
- { configTarget . child . type === 'component'
395
- ? ' component'
396
- : ' element' } { ' ' }
397
- < br />
398
- < br />
399
- < span
400
- className = {
401
- isThemeLight
402
- ? `${ classes . compName } ${ classes . lightThemeFontColor } `
403
- : `${ classes . compName } ${ classes . darkThemeFontColor } `
404
- }
405
- >
406
- { configTarget . child . name }
407
- </ span >
408
- </ h4 >
409
- ) : (
410
- < h4
417
+ < h4 >
418
+ Instance of
419
+ { configTarget . child . type === 'component'
420
+ ? ' component'
421
+ : ' element' } { ' ' }
422
+ < br />
423
+ < br />
424
+ < span
411
425
className = {
412
426
isThemeLight
413
- ? classes . lightThemeFontColor
414
- : classes . darkThemeFontColor
427
+ ? ` ${ classes . compName } ${ classes . lightThemeFontColor } `
428
+ : ` ${ classes . compName } ${ classes . darkThemeFontColor } `
415
429
}
416
430
>
417
- Parent Component:
418
- < br />
419
- < br />
420
- < span className = { classes . compName } > { configTarget . name } </ span >
421
- </ h4 >
422
- ) }
431
+ { configTarget . child . name }
432
+ </ span >
433
+ </ h4 >
423
434
</ div >
424
435
< section className = { 'customization-section' } >
425
436
< div >
@@ -431,7 +442,8 @@ const CustomizationPanel = ({ isThemeLight }): JSX.Element => {
431
442
title = "Display:"
432
443
name = "display"
433
444
items = { [
434
- { value : '' , text : 'none' } ,
445
+ { value : '' , text : 'default' } ,
446
+ { value : 'none' , text : 'none' } ,
435
447
{ value : 'block' , text : 'block' } ,
436
448
{ value : 'inline-block' , text : 'inline-block' } ,
437
449
{ value : 'flex' , text : 'flex' }
@@ -447,7 +459,7 @@ const CustomizationPanel = ({ isThemeLight }): JSX.Element => {
447
459
title = "Flex direction:"
448
460
name = "flexdir"
449
461
items = { [
450
- { value : '' , text : 'none ' } ,
462
+ { value : '' , text : 'default ' } ,
451
463
{ value : 'row' , text : 'row' } ,
452
464
{ value : 'column' , text : 'column' }
453
465
] }
@@ -460,7 +472,7 @@ const CustomizationPanel = ({ isThemeLight }): JSX.Element => {
460
472
title = "Justify content:"
461
473
name = "flexjust"
462
474
items = { [
463
- { value : '' , text : 'none ' } ,
475
+ { value : '' , text : 'default ' } ,
464
476
{ value : 'flex-start' , text : 'flex-start' } ,
465
477
{ value : 'flex-end' , text : 'flex-end' } ,
466
478
{ value : 'center' , text : 'center' } ,
@@ -477,7 +489,7 @@ const CustomizationPanel = ({ isThemeLight }): JSX.Element => {
477
489
title = "Align items:"
478
490
name = "flexalign"
479
491
items = { [
480
- { value : '' , text : 'none ' } ,
492
+ { value : '' , text : 'default ' } ,
481
493
{ value : 'stretch' , text : 'stretch' } ,
482
494
{ value : 'flex-start' , text : 'flex-start' } ,
483
495
{ value : 'flex-end' , text : 'flex-end' } ,
@@ -494,24 +506,26 @@ const CustomizationPanel = ({ isThemeLight }): JSX.Element => {
494
506
title = "Width:"
495
507
name = "width"
496
508
items = { [
497
- { value : '' , text : 'none ' } ,
509
+ { value : '' , text : 'default ' } ,
498
510
{ value : 'auto' , text : 'auto' } ,
511
+ { value : '100%' , text : '100%' } ,
499
512
{ value : '50%' , text : '50%' } ,
500
513
{ value : '25%' , text : '25%' }
501
514
] }
502
515
/>
503
516
< FormSelector
504
517
classes = { classes }
505
518
isThemeLight = { isThemeLight }
506
- selectValue = { compWidth }
519
+ selectValue = { compHeight }
507
520
handleChange = { handleChange }
508
521
title = "Height:"
509
522
name = "height"
510
523
items = { [
511
- { value : '' , text : 'none ' } ,
524
+ { value : '' , text : 'default ' } ,
512
525
{ value : 'auto' , text : 'auto' } ,
513
526
{ value : '100%' , text : '100%' } ,
514
- { value : '50%' , text : '50%' }
527
+ { value : '50%' , text : '50%' } ,
528
+ { value : '25%' , text : '25%' }
515
529
] }
516
530
/>
517
531
< div className = { classes . configRow } >
@@ -785,6 +799,9 @@ const useStyles = makeStyles({
785
799
compName : {
786
800
fontSize : '1rem'
787
801
} ,
802
+ rootCompName : {
803
+ fontSize : '1.75rem'
804
+ } ,
788
805
// 'Parent Component' font size
789
806
configHeader : {
790
807
height : '70px' ,
@@ -795,6 +812,15 @@ const useStyles = makeStyles({
795
812
marginTop : '10px'
796
813
}
797
814
} ,
815
+ rootConfigHeader : {
816
+ height : '70px' ,
817
+ '& > h4' : {
818
+ fontSize : '1.75rem' ,
819
+ letterSpacing : '0.5px' ,
820
+ marginBottom : '0' ,
821
+ marginTop : '30px'
822
+ }
823
+ } ,
798
824
lightThemeFontColor : {
799
825
color : '#155084'
800
826
} ,
0 commit comments