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

Commit5a6120b

Browse files
committed
cleanup button styles
1 parenta85dd93 commit5a6120b

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

‎web-app/src/components/Button/index.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,19 @@ interface Props {
77
disabled?:boolean
88
type?:'primary'|'secondary'|'normal'
99
onClick?:()=>void
10+
size?:'small'|'medium'|'large'
11+
iconSize?:'xxs'|'xs'|'small'|'medium'|'large'|'xl'|'xxl'|'xxxl'
1012
}
1113

1214
constButton=(props:Props)=>(
13-
<AlifdButtononClick={props.onClick}type={props.type}disabled={props.disabled}style={props.style}>
15+
<AlifdButton
16+
onClick={props.onClick}
17+
type={props.type}
18+
disabled={props.disabled}
19+
style={props.style}
20+
size={props.size}
21+
iconSize={props.iconSize}
22+
>
1423
{props.children}
1524
</AlifdButton>
1625
)

‎web-app/src/containers/Overview/OverviewPage.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import*asReactfrom'react'
22
import*asGfrom'typings/graphql'
33
importButtonfrom'../../components/Button'
4+
importIconfrom'../../components/Icon'
45
importMarkdownfrom'../../components/Markdown'
56

67
constfooterHeight='3rem'
@@ -23,11 +24,13 @@ const styles = {
2324
fontSize:'1rem',
2425
},
2526
header:{
27+
display:'flex',
2628
height:'2rem',
2729
backgroundColor:'#EBEBEB',
2830
fontSize:'1rem',
2931
lineHeight:'1rem',
3032
padding:'10px 1rem',
33+
alignItems:'center',
3134
},
3235
levelList:{
3336
padding:'0rem 1rem',
@@ -61,7 +64,10 @@ const Summary = ({ title, description, levels, onNext, onBack }: Props) => (
6164
<divcss={styles.page}>
6265
<div>
6366
<divcss={styles.header}>
64-
<buttononClick={onBack}>Back</button>
67+
<buttononClick={onBack}>
68+
<Icontype="arrow-left"size="xxs"/>
69+
</button>
70+
<span>&nbsp;&nbsp;</span>
6571
<span>CodeRoad</span>
6672
</div>
6773
<divcss={styles.summary}>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp