File tree Expand file tree Collapse file tree 4 files changed +29
-11
lines changed
components/NewUserExperience
containers/Tutorial/LevelPage Expand file tree Collapse file tree 4 files changed +29
-11
lines changed Original file line number Diff line number Diff line change 5959 "@types/node" : " ^13.7.7" ,
6060 "@types/prismjs" : " ^1.16.0" ,
6161 "@types/react" : " ^16.9.23" ,
62+ "@types/react-addons-css-transition-group" : " ^15.0.5" ,
6263 "@types/react-dom" : " ^16.9.5" ,
6364 "@typescript-eslint/eslint-plugin" : " ^2.21.0" ,
6465 "@typescript-eslint/parser" : " ^2.21.0" ,
Original file line number Diff line number Diff line change @@ -7,22 +7,22 @@ const Panel = Collapse.Panel
77
88const styles = {
99 container : {
10- position : 'relative' ,
10+ position : 'relative' as 'relative' ,
1111 transition : 'all .35s' ,
1212 } ,
1313 header : {
14- display : 'flex' ,
14+ display : 'flex' as 'flex' ,
1515 backgroundColor : '#6a67ce' ,
1616 color : 'white' ,
1717 padding : '0.5rem' ,
1818 } ,
1919 title : {
20- marginLeft : '.6rem' ,
2120 fontSize : '1rem' ,
2221 } ,
2322 toggle : {
24- display : 'flex' ,
25- alignItems : 'center' ,
23+ display : 'flex' as 'flex' ,
24+ alignItems : 'center' as 'center' ,
25+ width : '1.5rem' ,
2626 } ,
2727}
2828
@@ -113,10 +113,8 @@ const NewUserExperienceTutorial = (props: Props) => {
113113 return (
114114 < div css = { { ...styles . container , ...props . css } } >
115115 < div css = { styles . header } onClick = { onToggle } style = { { cursor : 'pointer' } } >
116- < div css = { styles . toggle } >
117- { isOpen ? < Icon type = "close" size = "xs" /> : < Icon type = "help" size = "small" /> }
118- < span css = { styles . title } > Help</ span >
119- </ div >
116+ < span css = { styles . toggle } > { isOpen ? < Icon type = "close" size = "xs" /> : < Icon type = "help" size = "small" /> } </ span >
117+ < span css = { styles . title } > Help</ span >
120118 </ div >
121119 < ReactCSSTransitionGroup transitionName = "slide" transitionEnterTimeout = { 500 } transitionLeaveTimeout = { 300 } >
122120 { isOpen && < NewUserExperienceTutorialCollapsible /> }
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const styles = {
1515 display : 'flex' as 'flex' ,
1616 flexDirection : 'column' as 'column' ,
1717 padding : 0 ,
18- paddingBottom : '4. 5rem' ,
18+ paddingBottom : '5rem' ,
1919 height : 'auto' ,
2020 width : '100%' ,
2121 } ,
@@ -44,7 +44,7 @@ const styles = {
4444 processes : {
4545 padding : '0 1rem' ,
4646 position : 'fixed' as 'fixed' ,
47- bottom : '2rem ' ,
47+ bottom : '4rem ' ,
4848 left : 0 ,
4949 right : 0 ,
5050 } ,
You can’t perform that action at this time.
0 commit comments