From b895007c8d454301a062dd40e5d56b66dcd34773 Mon Sep 17 00:00:00 2001 From: lee gyu yeol-mac Date: Mon, 18 Nov 2024 00:55:32 +0900 Subject: [PATCH] =?UTF-8?q?[#288]feat:=20css=20=EC=88=98=EC=A0=95=20?= =?UTF-8?q?=EC=99=84=EB=A3=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.css | 1 - .../Visualization/Visualization.module.css | 2 +- src/pages/Visualization/Visualization.tsx | 64 ++++----- .../Visualization/VisualizationClassroom.tsx | 128 +++++++++--------- 4 files changed, 100 insertions(+), 95 deletions(-) diff --git a/src/index.css b/src/index.css index 2867f507..22fd6d3f 100644 --- a/src/index.css +++ b/src/index.css @@ -33,7 +33,6 @@ body { margin: 0; /* 기본 마진 제거 */ background-color: #f9fafb; height: 100%; - overflow: hidden; } #root { height: 100%; diff --git a/src/pages/Visualization/Visualization.module.css b/src/pages/Visualization/Visualization.module.css index 1e29c14f..79843173 100644 --- a/src/pages/Visualization/Visualization.module.css +++ b/src/pages/Visualization/Visualization.module.css @@ -1,7 +1,7 @@ .main { display: flex; flex-direction: column; - height: 93vh; + height: 100%; width: 100%; } .s__select { diff --git a/src/pages/Visualization/Visualization.tsx b/src/pages/Visualization/Visualization.tsx index 969fcfc8..30a24741 100644 --- a/src/pages/Visualization/Visualization.tsx +++ b/src/pages/Visualization/Visualization.tsx @@ -38,39 +38,41 @@ export default function Visualization() { return ( -
-
- {focus && gptPin ? : (gptPin || isGptToggle) && } +
+
+
+ {focus && gptPin ? : (gptPin || isGptToggle) && } - - - - -
- - 완료 아이콘 - 사용법 - -
-
+ + + +
+ + 완료 아이콘 + 사용법 + +
+
+ ); diff --git a/src/pages/Visualization/VisualizationClassroom.tsx b/src/pages/Visualization/VisualizationClassroom.tsx index eef3599e..52225674 100644 --- a/src/pages/Visualization/VisualizationClassroom.tsx +++ b/src/pages/Visualization/VisualizationClassroom.tsx @@ -34,11 +34,13 @@ interface ClassAccessRightDataType { const VisualizationClassroom = () => { const [code, setCode] = useState( - ["# example\n" + - "for i in range(2, 10):\n" + - " for j in range(1, 10):\n" + - " print(f\"{i} x {j} = {i * j}\")\n" + - " print()\n"].join("\n") + [ + "# example\n" + + "for i in range(2, 10):\n" + + " for j in range(1, 10):\n" + + ' print(f"{i} x {j} = {i * j}")\n' + + " print()\n", + ].join("\n") ); const [preprocessedCodes, setPreprocessedCodes] = useState([]); const navigate = useNavigate(); @@ -101,65 +103,67 @@ const VisualizationClassroom = () => { return ( -
+
+
-
- {focus && gptPin ? : (gptPin || isGptToggle) && } +
+ {focus && gptPin ? : (gptPin || isGptToggle) && } - - - - -
- {guestStatus?.result === ActionType.HELP && ( - - )} - {guestStatus?.result === ActionType.ING && ( - - )} - {guestStatus?.result === ActionType.ING && ( - - )} - {guestStatus?.result === ActionType.COMPLETE && ( - - )} -
-
+ + + + +
+ {guestStatus?.result === ActionType.HELP && ( + + )} + {guestStatus?.result === ActionType.ING && ( + + )} + {guestStatus?.result === ActionType.ING && ( + + )} + {guestStatus?.result === ActionType.COMPLETE && ( + + )} +
+
+
);