Skip to content

Commit 2e0e278

Browse files
committed
update task hints component styles
1 parent 58953d8 commit 2e0e278

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

lib/components/page/hints/hints.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ exports.Hints = function (_a) {
1111
return null;
1212
}
1313
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(_components_1.Markdown, null, hint)), React.createElement(Card_1.CardActions, {expandable: true}, React.createElement(buttons_1.HintButton, {label: 'Previous', hintPosition: hintPosition, hintsLength: hints.length, type: 'prev'}), React.createElement(buttons_1.HintButton, {label: 'Next', hintPosition: hintPosition, hintsLength: hints.length, type: 'next'}))));
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(_components_1.Markdown, null, hint)), React.createElement(Card_1.CardActions, {expandable: true, className: 'cr-task-hints-actions'}, React.createElement(buttons_1.HintButton, {label: 'Previous', hintPosition: hintPosition, hintsLength: hints.length, type: 'prev'}), React.createElement(buttons_1.HintButton, {label: 'Next', hintPosition: hintPosition, hintsLength: hints.length, type: 'next'}))));
1515
};

src/components/page/hints/_hints.less

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
.cr-task-hints {
22
position: fixed;
3-
bottom: 60px;
4-
right: 0;
3+
bottom: 20px;
4+
padding-bottom: 20px;
5+
right: 20px;
56
margin: 0;
6-
width: 400px;
7+
width: 360px;
78
text-align: center;
9+
&-actions {
10+
padding-bottom: 30px !important;
11+
}
812
}

src/components/page/hints/hints.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const Hints: React.StatelessComponent<{
2222
<CardText className='cr-task-hint' expandable={true}>
2323
<Markdown>{hint}</Markdown>
2424
</CardText>
25-
<CardActions expandable={true}>
25+
<CardActions expandable={true} className='cr-task-hints-actions'>
2626
<HintButton label='Previous' hintPosition={hintPosition} hintsLength={hints.length} type='prev' />
2727
<HintButton label='Next' hintPosition={hintPosition} hintsLength={hints.length} type='next' />
2828
</CardActions>

0 commit comments

Comments
 (0)