Skip to content

Commit 95ee7ad

Browse files
fix: blog form 작성하기 더 편한 여백으로 조정
1 parent 9d42804 commit 95ee7ad

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

app/admin/write/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const generateMetadata = async (): Promise<Metadata> => {
99

1010
const 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
);

app/entities/post/write/BlogForm.tsx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)