@@ -4,14 +4,21 @@ var Card_1 = require('material-ui/Card');
4
4
var index_1 = require ( '../../index' ) ;
5
5
var HintButton_1 = require ( './HintButton' ) ;
6
6
var 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
+ } ;
7
14
exports . Hints = function ( _a ) {
8
15
var task = _a . task , hintPosition = _a . hintPosition ;
9
16
var hints = task && task . hints ?task . hints :null ;
10
17
if ( hintPosition < 0 || ! hints || ! hints . length ) {
11
18
return null ;
12
19
}
13
20
var 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 } ) )
16
23
:null ) ) ;
17
24
} ;