@@ -81,27 +81,26 @@ export default function ConfigSection(props: ConfigSectionProps) {
8181 }
8282
8383 return (
84- < section className = "mb-4 " >
84+ < section className = "mb-2 " >
8585 < section className = "d-flex flex-row " >
8686 < SectionHeader />
87- < div className = "d-flex flex-row ml-3" >
88- { props . config . isLoading && < div className = "d-flex flex-row pb-1 align-items-center justify-content-center" >
89- < span > Loading config</ span > < i className = "fas fa-spinner fa-spin ml-1" > </ i >
90- </ div > }
91- </ div >
9287 < >
9388 { ! props . config . isLoading && ! props . config . errorStatus && ! props . config . error &&
9489 < div onClick = { ( ) => props . loadScriptRunner ( props . config ) } className = "pointer px-2 pb-1" >
9590 { props . activeConfig && props . activeConfig . name === props . config . name &&
9691 < div className = { `${ ! isVisible ? 'd-flex flex-row align-items-center justify-content-center pt-1' : 'd-flex flex-row pb-1 align-items-center justify-content-center' } ` } >
97- { isVisible && < span onAnimationEnd = { handleAnimationEnd } className = "text-success" style = { { animation : 'fadeOut 5s forwards' , animationFillMode : 'forwards' } } > Config loaded </ span > }
98- < FontAwesomeIcon data-id = { `sr-loaded- ${ props . config . title } ` } className = "text-success ml -3" icon = { faCheck } > </ FontAwesomeIcon >
92+ < FontAwesomeIcon data-id = { `sr-loaded- ${ props . config . name } ` } className = "text-success ml-3" icon = { faCheck } > </ FontAwesomeIcon >
93+ { isVisible && < span onAnimationEnd = { handleAnimationEnd } className = "text-success px -3" style = { { animation : 'fadeOut 5s forwards' , animationFillMode : 'forwards' } } > Config loaded </ span > }
9994 </ div >
10095 }
10196 </ div >
10297 }
103- < div className = "w-25" > </ div >
10498 </ >
99+ < div className = "d-flex flex-row mx-4" >
100+ { props . config . isLoading && < div className = "d-flex flex-row pb-1 align-items-center justify-content-center" >
101+ < i className = "fas fa-spinner fa-spin" > </ i > < span className = 'pl-3' > Loading config</ span >
102+ </ div > }
103+ </ div >
105104 </ section >
106105 < section id = "errorSection" >
107106 { props . config . errorStatus && props . config . error && < div className = "text-danger" >
@@ -122,16 +121,15 @@ export default function ConfigSection(props: ConfigSectionProps) {
122121 </ div >
123122 }
124123 </ section >
125- < section className = "d-flex flex-column" style = { { width : ' 100%' } } >
126- < div className = "mt-4 bg-light p-3 " >
124+ < section className = "d-flex flex-column w- 100" >
125+ < div className = "mt-2 mb- 4 bg-dark p-3 " >
127126 < p className = "text-dark text-monospace" > { props . config . description } </ p >
128127 < p className = "text-dark" > Dependencies</ p >
129128 < ul className = "list-unstyled " >
130129 < Dependencies />
131130 </ ul >
132131 </ div >
133132 </ section >
134-
135133 </ section >
136134 )
137135}
0 commit comments