Skip to content

Commit

Permalink
fix: fix md editor button style (#782)
Browse files Browse the repository at this point in the history
  • Loading branch information
laojun authored Jul 29, 2021
1 parent 00fe437 commit f3321fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion shell/app/common/components/markdown-editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,11 @@ export default class MarkdownEditor extends PureComponent<IProps, IState> {
<Rate allowHalf onChange={this.onRateChange} value={this.state.score} />
</div>
</IF>
{view.md ? <div className="absolute left-2 bottom-0 ">{this.renderButton()}</div> : null}
{view.md ? (
<div className="absolute left-2 " style={{ top: height - 42 }}>
{this.renderButton()}
</div>
) : null}
</div>
);
}
Expand Down

0 comments on commit f3321fe

Please # to comment.