Skip to content

Commit 0362bbe

Browse files
authored
Merge pull request #182 from boostcampwm-2024/feature-fe-#181
�에디터 텍스트, 간격 스타일링
2 parents 16b2891 + 232a7f9 commit 0362bbe

File tree

2 files changed

+41
-2
lines changed

2 files changed

+41
-2
lines changed

frontend/src/components/editor/EditorTitle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function EditorTitle({
3232
<input
3333
type="text"
3434
value={input as string}
35-
className="w-full text-xl font-bold outline-none"
35+
className="w-full text-4xl font-bold outline-none"
3636
onChange={handleTitleChange}
3737
/>
3838
</div>

frontend/src/components/editor/prosemirror.css

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
1+
.tiptap p {
2+
margin-top: 0;
3+
margin-bottom: 0;
4+
padding: 3px 2px;
5+
line-height: 1.5;
6+
font-size: 16px;
7+
}
8+
9+
.tiptap h1 {
10+
margin-top: 2rem;
11+
margin-bottom: 2px;
12+
padding: 3px 2px;
13+
line-height: 1.3;
14+
font-size: 1.875rem;
15+
font-weight: 600;
16+
}
17+
18+
.tiptap h2 {
19+
margin-top: 1.4rem;
20+
margin-bottom: 1px;
21+
padding: 3px 2px;
22+
line-height: 1.3;
23+
font-size: 1.5rem;
24+
font-weight: 600;
25+
}
26+
27+
.tiptap h3 {
28+
margin-top: 1rem;
29+
margin-bottom: 1px;
30+
padding: 3px 2px;
31+
line-height: 1.3;
32+
font-size: 1.25rem;
33+
font-weight: 600;
34+
}
35+
136
.ProseMirror {
2-
@apply p-12 px-8 sm:px-12;
37+
@apply p-8 sm:px-12;
38+
}
39+
40+
.ProseMirror .p {
41+
@apply my-0;
342
}
443

544
.ProseMirror .is-editor-empty:first-child::before {

0 commit comments

Comments
 (0)