@@ -4,14 +4,21 @@ var Card_1 = require('material-ui/Card');
44var index_1 = require ( '../../index' ) ;
55var HintButton_1 = require ( './HintButton' ) ;
66var help_1 = require ( 'material-ui/svg-icons/action/help' ) ;
7+ var styles = {
8+ position :'relative' ,
9+ margin :'-5px 20px' ,
10+ width :'360px' ,
11+ textAlign :'center' ,
12+ zIndex :'0' ,
13+ } ;
714exports . Hints = function ( _a ) {
815var task = _a . task , hintPosition = _a . hintPosition ;
916var hints = task && task . hints ?task . hints :null ;
1017if ( hintPosition < 0 || ! hints || ! hints . length ) {
1118return null ;
1219}
1320var hint = hints [ hintPosition ] ;
14- return ( React . createElement ( Card_1 . Card , { className : 'cr-task-hints' } , React . createElement ( Card_1 . CardHeader , { title :'Hints' , avatar :React . createElement ( help_1 . default , null ) , actAsExpander :true , showExpandableButton :true } ) , React . createElement ( Card_1 . CardText , { className :'cr-task-hint' , expandable :true } , React . createElement ( index_1 . Markdown , null , hint ) ) , hints . length > 1
15- ?React . createElement ( Card_1 . CardActions , { expandable :true , className :'cr-task-hints-actions' } , React . createElement ( HintButton_1 . HintButton , { type :'prev' , label :'Previous' , hintPosition :hintPosition , hintsLength :hints . length } ) , React . createElement ( HintButton_1 . HintButton , { type :'next' , label :'Next' , hintPosition :hintPosition , hintsLength :hints . length } ) )
21+ return ( React . createElement ( Card_1 . Card , { style : styles } , React . createElement ( Card_1 . CardHeader , { title :'Hints' , avatar :React . createElement ( help_1 . default , null ) , actAsExpander :true , showExpandableButton :true } ) , React . createElement ( Card_1 . CardText , { className :'cr-task-hint' , expandable :true } , React . createElement ( index_1 . Markdown , null , hint ) ) , hints . length > 1
22+ ?React . createElement ( Card_1 . CardActions , { style : { paddingBottom : '30px !important' } , expandable :true , className :'cr-task-hints-actions' } , React . createElement ( HintButton_1 . HintButton , { type :'prev' , label :'Previous' , hintPosition :hintPosition , hintsLength :hints . length } ) , React . createElement ( HintButton_1 . HintButton , { type :'next' , label :'Next' , hintPosition :hintPosition , hintsLength :hints . length } ) )
1623 :null ) ) ;
1724} ;