Skip to content

Commit 614238b

Browse files
authored
Merge pull request #81 from DMU-DebugVisual/dongjun
IDE 레이아웃 및 스타일 충돌 해결
2 parents 45ff1b7 + 17a5343 commit 614238b

File tree

2 files changed

+286
-994
lines changed

2 files changed

+286
-994
lines changed

src/App.css

Lines changed: 21 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,35 @@
1-
.App {
2-
text-align: center;
3-
}
1+
/* App.css - 모든 내용을 지우고 아래 코드로 교체해주세요 */
42

5-
.App-logo {
6-
height: 40vmin;
7-
pointer-events: none;
3+
/* 브라우저 기본 여백 제거 및 전체 레이아웃 설정 (최강력 적용) */
4+
html, body, #root {
5+
margin: 0 !important; /* 모든 마진 제거 */
6+
padding: 0 !important; /* 모든 패딩 제거 */
7+
width: 100% !important; /* 너비를 100%로 설정 */
8+
height: 100% !important; /* 높이를 100%로 설정 */
9+
overflow: hidden !important; /* 불필요한 스크롤 방지 */
10+
background-color: #f8f9fa !important; /* 기본 배경색 (라이트 모드) */
811
}
912

10-
@media (prefers-reduced-motion: no-preference) {
11-
.App-logo {
12-
animation: App-logo-spin infinite 20s linear;
13-
}
13+
/* 다크 모드일 때 body 배경색 변경 */
14+
body.dark-mode {
15+
background-color: #1e1e1e !important; /* 다크 모드 배경색 */
1416
}
1517

16-
.App-header {
17-
background-color: #282c34;
18-
min-height: 100vh;
18+
/* Flexbox 레이아웃을 위한 래퍼 스타일 (이전 App.js 수정에서 사용) */
19+
/* 만약 App.js를 이전으로 되돌리셨다면 이 부분은 무시하셔도 됩니다. */
20+
.app-wrapper {
1921
display: flex;
2022
flex-direction: column;
21-
align-items: center;
22-
justify-content: center;
23-
font-size: calc(10px + 2vmin);
24-
color: white;
23+
height: 100vh;
2524
}
2625

27-
.App-link {
28-
color: #61dafb;
26+
.main-app-content {
27+
flex-grow: 1;
28+
overflow-y: auto;
2929
}
3030

31-
@keyframes App-logo-spin {
32-
from {
33-
transform: rotate(0deg);
34-
}
35-
to {
36-
transform: rotate(360deg);
37-
}
38-
}
39-
/* 전체 텍스트 선택 방지 */
40-
* {
41-
-webkit-user-select: none; /* Safari */
42-
-moz-user-select: none; /* Firefox */
43-
-ms-user-select: none; /* IE10+ */
44-
user-select: none; /* 표준 */
45-
}
46-
47-
/* 단, Monaco Editor(IDE)는 선택 허용 */
31+
/* Monaco Editor(IDE)는 텍스트 선택 허용 */
4832
.monaco-editor,
4933
.monaco-editor * {
5034
user-select: text !important;
51-
}
35+
}

0 commit comments

Comments
 (0)