Skip to content

Commit

Permalink
fix: fix button width limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhanglong committed Sep 16, 2021
1 parent 384050b commit 2c5d832
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions assets/index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions assets/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@

.back {
margin-right: 12px;
width: 80px;
min-width: 80px;
}

.forward {
width: 80px;
min-width: 80px;
}
}
14 changes: 8 additions & 6 deletions src/onboarding/onboarding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,18 @@ export const OnBoarding: React.FC<OnBoardingProps> = (props) => {

const defaultOperation = (
<div className={'onboarding-default-operation'}>
<Button
className={'back'}
onClick={() => back()}>
上一步
</Button>
{
currentStep !== 0 && <Button
className={'back'}
onClick={() => back()}>
上一步
</Button>
}
<Button
className={'forward'}
type={'primary'}
onClick={() => forward()}>
下一步
{currentStep === steps.length - 1 ? '我知道了' : '下一步'}
</Button>
</div>
);
Expand Down

0 comments on commit 2c5d832

Please sign in to comment.