File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
import React , { Fragment } from 'react' ;
2
2
import rehypeSanitize , { defaultSchema } from 'rehype-sanitize' ;
3
3
import MDEditor , { MDEditorProps } from '@uiw/react-md-editor' ;
4
+ import styled from 'styled-components' ;
5
+
6
+ const Toolbar = styled . div `
7
+ padding-top: 10px;
8
+ text-align: center;
9
+ ` ;
4
10
5
11
let count = 1 ;
6
12
@@ -62,7 +68,7 @@ const Example = (props = {} as { mdStr: string }) => {
62
68
setVisible ( { ...state , value : newValue } ) ;
63
69
} }
64
70
/>
65
- < div className = "doc-tools" >
71
+ < Toolbar >
66
72
< label >
67
73
< input
68
74
type = "checkbox"
@@ -123,6 +129,7 @@ const Example = (props = {} as { mdStr: string }) => {
123
129
/>
124
130
overflow
125
131
</ label >
132
+ < br />
126
133
< label >
127
134
< input type = "radio" name = "preview" value = "edit" checked = { state . preview === 'edit' } onChange = { upPreview } />
128
135
Edit
@@ -161,7 +168,7 @@ const Example = (props = {} as { mdStr: string }) => {
161
168
>
162
169
Clear
163
170
</ button >
164
- </ div >
171
+ </ Toolbar >
165
172
</ Fragment >
166
173
) ;
167
174
} ;
You can’t perform that action at this time.
0 commit comments