Skip to content

Commit 6253428

Browse files
committed
[Add] Update CodeEditor Style
1 parent ec37350 commit 6253428

File tree

5 files changed

+3
-8
lines changed

5 files changed

+3
-8
lines changed

docs/novice-high/02/02/2.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ sidebar_position: 2
44

55
# 정수 명령 처리 5
66

7-
<sup>테스트 1</sup>
8-
97
```python novice-high/02/02/2
108
print("Hello, World!")
119
```

docs/novice-high/02/04/3.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ sidebar_position: 3
44

55
# 정수 명령 처리 8
66

7-
<sup>기본 개념 3</sup>
8-
97
```python novice-high/02/04/3
108
print("Hello, World!")
119
```

docs/novice-high/02/05/2.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ sidebar_position: 2
44

55
# 황금비율 토스트
66

7-
<sup>기본 개념 2</sup>
8-
97
```python novice-high/02/05/2
108
print("Hello, World!")
119
```

src/components/CodeEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default function CodeEditor(props) {
138138
}
139139

140140
return (
141-
<div className="relative mt-5 mb-10 flex flex-col">
141+
<div className="relative mt-10 mb-10 flex flex-col">
142142
<Controls
143143
items={[
144144
{

src/theme/CodeBlock/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ function maybeStringifyChildren(children) {
1616
// The children is now guaranteed to be one/more plain strings
1717
return Array.isArray(children) ? children.join("") : children;
1818
}
19+
1920
export default function CodeBlock({ children: rawChildren, ...props }) {
2021
const [codes, setCodes] = useState([]); // 코드를 담을 상태
2122
const [names, setNames] = useState([]);
@@ -87,7 +88,7 @@ export default function CodeBlock({ children: rawChildren, ...props }) {
8788
{codes.length > 0 ? (
8889
<CodeEditor names={names} codes={codes} showButtons />
8990
) : (
90-
<></> // 코드가 로드되지 않은 경우 빈 요소를 반환하여 렌더링을 대기함
91+
<CodeEditor names={["Code-Study"]} codes={["No code has been solved yet!"]} showButtons />
9192
)}
9293
</>
9394
);

0 commit comments

Comments
 (0)