Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { css } from "@styled-system/css";
import MDEditor from "@uiw/react-md-editor";
import * as React from "react";
import type { GitHubAuthor } from "@/api/remote/discussions";
import { Avatar } from "@/components/shared/ui/Avatar";
import { Button } from "@/components/shared/ui/Button";
import { Input } from "@/components/shared/ui/Input";
import MDEditor from "@uiw/react-md-editor";
import type { GitHubAuthor } from "@/api/remote/discussions";
import { css } from "@styled-system/css";

interface PostInputProps {
user: GitHubAuthor;
Expand Down Expand Up @@ -81,21 +81,20 @@ export function PostInput({
className={titleInputStyle}
/>
<div className={editorWrapper} data-color-mode="light">
<div className={editorContainer}>
<MDEditor
value={content}
onChange={handleContentChange}
preview="edit"
hideToolbar={true}
visibleDragbar={false}
textareaProps={{
placeholder:
"작은 기록이 모여 큰 성장이 됩니다.\nTIL은 Frontend Fundamentals Discussion에 여러분의 GitHub 계정으로 저장돼요.\n하루에 한 줄씩, 함께 성장해봐요.",
style: { backgroundColor: "red !important" }
}}
height={editorHeight}
/>
</div>
<MDEditor
value={content}
style={{ boxShadow: "none" }}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

onChange={handleContentChange}
preview="edit"
hideToolbar={true}
visibleDragbar={false}
textareaProps={{
placeholder:
"작은 기록이 모여 큰 성장이 됩니다.\nTIL은 Frontend Fundamentals Discussion에 여러분의 GitHub 계정으로 저장돼요.\n하루에 한 줄씩, 함께 성장해봐요.",
style: { backgroundColor: "red !important" }
}}
height={editorHeight}
/>
</div>
</div>
</div>
Expand Down Expand Up @@ -220,17 +219,6 @@ const editorWrapper = css({
width: "100%"
});

const editorContainer = css({
"& .w-md-editor": {
border: "none !important",
boxShadow: "none !important"
},
"& .w-md-editor-text": {
padding: "0 !important",
height: "full"
}
});

// Action Area
const actionArea = css({
display: "flex",
Expand Down