Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2e0e278

Browse files
committed
update task hints component styles
1 parent58953d8 commit2e0e278

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

‎lib/components/page/hints/hints.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ exports.Hints = function (_a) {
1111
returnnull;
1212
}
1313
varhint=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

Lines changed: 7 additions & 3 deletions
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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp