File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export const generateMetadata = async (): Promise<Metadata> => {
99
1010const BlogWritePage = ( ) => {
1111 return (
12- < section className = { 'p -6 max-w-7xl mx-auto' } >
12+ < section className = { 'py -6 px-2 max-w-8xl mx-auto' } >
1313 < BlogForm />
1414 </ section >
1515 ) ;
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ const BlogForm = () => {
240240 } ;
241241
242242 return (
243- < div className = { 'px-4 ' } >
243+ < div className = { 'px-2 ' } >
244244 < h1 className = { 'text-2xl text-center mb-4' } >
245245 글 { slug ? '수정' : '작성' }
246246 </ h1 >
@@ -294,7 +294,11 @@ const BlogForm = () => {
294294 < MDEditor
295295 value = { formData . content }
296296 onChange = { ( value ) => setFormData ( { content : value } ) }
297- extraCommands = { [ calloutCommand , commands . divider , ...commands . getExtraCommands ( ) ] }
297+ extraCommands = { [
298+ calloutCommand ,
299+ commands . divider ,
300+ ...commands . getExtraCommands ( ) ,
301+ ] }
298302 height = { 500 }
299303 minHeight = { 500 }
300304 visibleDragbar = { false }
@@ -304,8 +308,13 @@ const BlogForm = () => {
304308 'data-color-mode' : theme ,
305309 } ,
306310 components : {
307- callout : ( { emoji, children } : { emoji ?: string ; children ?: React . ReactNode } ) =>
308- < Callout emoji = { emoji } > { children } </ Callout > ,
311+ callout : ( {
312+ emoji,
313+ children,
314+ } : {
315+ emoji ?: string ;
316+ children ?: React . ReactNode ;
317+ } ) => < Callout emoji = { emoji } > { children } </ Callout > ,
309318 } as any ,
310319 rehypeRewrite : ( node , index ?, parent ?) => {
311320 asideToCallout ( node ) ;
You can’t perform that action at this time.
0 commit comments