Skip to content

Commit

Permalink
doc: 编辑代码按钮尺寸调大,代码编辑抽屉可以点击外部关闭 (#4372)
Browse files Browse the repository at this point in the history
  • Loading branch information
lurunze1226 committed May 19, 2022
1 parent 9c1904d commit b0dc885
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/components/Play.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -483,11 +483,12 @@ export default class PlayGround extends React.Component {
if (mini) {
return (
<div className="Playgroud Playgroud--mini">
<a onClick={this.toggleDrawer}>
<a onClick={this.toggleDrawer} className="Playgroud-edit-btn">
编辑代码 <i className="fa fa-code p-l-xs"></i>
</a>
<Drawer
showCloseButton
closeOnOutside
resizable
theme={theme}
overlay={false}
Expand Down
4 changes: 4 additions & 0 deletions examples/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1036,6 +1036,10 @@ body.dark {
color: #fff;
}

&-edit-btn {
font-size: 14px;
}

&-preview {
position: relative;
display: flex;
Expand Down

0 comments on commit b0dc885

Please sign in to comment.