@@ -464,17 +464,14 @@ export const FieldForm = ({
464
464
return (
465
465
< >
466
466
< DialogTitle
467
+ component = "div"
467
468
sx = { {
468
- padding : 0 ,
469
+ borderBottom : "2px solid" ,
470
+ borderColor : "border" ,
471
+ pb : 0 ,
469
472
} }
470
473
>
471
- < Box
472
- display = "flex"
473
- justifyContent = "space-between"
474
- alignItems = "center"
475
- px = { 2.5 }
476
- pt = { 2.5 }
477
- >
474
+ < Box display = "flex" justifyContent = "space-between" alignItems = "center" >
478
475
< Box display = "flex" alignItems = "center" >
479
476
{ ! isUpdateField && (
480
477
< IconButton
@@ -495,7 +492,7 @@ export const FieldForm = ({
495
492
/>
496
493
</ Box >
497
494
< Box display = "flex" flexDirection = "column" >
498
- < Typography variant = "h5" fontWeight = { 600 } >
495
+ < Typography variant = "h5" fontWeight = { 700 } >
499
496
{ isUpdateField
500
497
? `Edit ${ fieldData . label } `
501
498
: `Add ${ name } Field` }
@@ -521,7 +518,8 @@ export const FieldForm = ({
521
518
value = { activeTab }
522
519
onChange = { ( _ , value : ActiveTab ) => setActiveTab ( value ) }
523
520
sx = { {
524
- px : 2.5 ,
521
+ position : "relative" ,
522
+ top : "2px" ,
525
523
} }
526
524
>
527
525
< Tab
@@ -550,24 +548,21 @@ export const FieldForm = ({
550
548
< DialogContent
551
549
dividers
552
550
sx = { {
553
- p : 2.5 ,
554
- position : "relative" ,
551
+ pt : 2.5 ,
552
+ pl : activeTab === "details" ? 0 : 2.5 ,
553
+ backgroundColor : "grey.50" ,
554
+ borderTop : 0 ,
555
555
} }
556
556
>
557
557
{ activeTab === "details" && (
558
558
< Grid
559
559
data-cy = "DetailsTab"
560
560
container
561
- spacing = { 2.5 }
562
- maxWidth = "480px"
561
+ rowSpacing = { 2.5 }
562
+ columnSpacing = { 2.5 }
563
+ width = "inherit"
563
564
minHeight = { 448 }
564
- mt = { - 2.5 } //Offset grid item default top padding
565
565
ml = { 0 }
566
- sx = { {
567
- "&.MuiGrid-container .MuiGrid-item" : {
568
- pl : 0 ,
569
- } ,
570
- } }
571
566
>
572
567
{ FORM_CONFIG [ type ] ?. details ?. map ( ( fieldConfig , index ) => {
573
568
// Only show tooltip field when updating a field that already has a tooltip value
@@ -660,7 +655,7 @@ export const FieldForm = ({
660
655
{ isUpdateField ? (
661
656
< DialogActions
662
657
sx = { {
663
- p : 2.5 ,
658
+ pt : 2.5 ,
664
659
} }
665
660
>
666
661
< Button
@@ -689,8 +684,7 @@ export const FieldForm = ({
689
684
display : "flex" ,
690
685
justifyContent : "space-between" ,
691
686
alignItems : "center" ,
692
- px : 3 ,
693
- py : 2 ,
687
+ pt : 2.5 ,
694
688
} }
695
689
>
696
690
< Button variant = "outlined" color = "inherit" onClick = { onBackClick } >
@@ -707,15 +701,15 @@ export const FieldForm = ({
707
701
loading = { isCreatingField || isBulkUpdating }
708
702
onClick = { handleAddAnotherField }
709
703
>
710
- Add another field
704
+ Add Another Field
711
705
</ LoadingButton >
712
706
< LoadingButton
713
707
data-cy = "FieldFormAddFieldBtn"
714
708
loading = { isCreatingField || isBulkUpdating }
715
709
onClick = { handleSubmitForm }
716
710
variant = "contained"
717
711
>
718
- Done
712
+ Add Field
719
713
</ LoadingButton >
720
714
</ Box >
721
715
</ DialogActions >
0 commit comments