Skip to content

Commit

Permalink
Merge pull request #182 from boostcampwm-2024/feature-fe-#181
Browse files Browse the repository at this point in the history
�에디터 텍스트, 간격 스타일링
  • Loading branch information
yewonJin authored Nov 17, 2024
2 parents 16b2891 + 232a7f9 commit 0362bbe
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/editor/EditorTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default function EditorTitle({
<input
type="text"
value={input as string}
className="w-full text-xl font-bold outline-none"
className="w-full text-4xl font-bold outline-none"
onChange={handleTitleChange}
/>
</div>
Expand Down
41 changes: 40 additions & 1 deletion frontend/src/components/editor/prosemirror.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
.tiptap p {
margin-top: 0;
margin-bottom: 0;
padding: 3px 2px;
line-height: 1.5;
font-size: 16px;
}

.tiptap h1 {
margin-top: 2rem;
margin-bottom: 2px;
padding: 3px 2px;
line-height: 1.3;
font-size: 1.875rem;
font-weight: 600;
}

.tiptap h2 {
margin-top: 1.4rem;
margin-bottom: 1px;
padding: 3px 2px;
line-height: 1.3;
font-size: 1.5rem;
font-weight: 600;
}

.tiptap h3 {
margin-top: 1rem;
margin-bottom: 1px;
padding: 3px 2px;
line-height: 1.3;
font-size: 1.25rem;
font-weight: 600;
}

.ProseMirror {
@apply p-12 px-8 sm:px-12;
@apply p-8 sm:px-12;
}

.ProseMirror .p {
@apply my-0;
}

.ProseMirror .is-editor-empty:first-child::before {
Expand Down

0 comments on commit 0362bbe

Please sign in to comment.