From caa21472babc7ac7742380cb6167b6d227e21f52 Mon Sep 17 00:00:00 2001 From: yoshi Date: Thu, 8 May 2025 10:34:43 -0700 Subject: [PATCH] fixed layout --- src/components/EditorPanel.jsx | 2 +- src/components/PreviewPanel.jsx | 16 ++++++++++------ src/pages/CodeEditor.jsx | 33 +++++++++++++++------------------ 3 files changed, 26 insertions(+), 25 deletions(-) diff --git a/src/components/EditorPanel.jsx b/src/components/EditorPanel.jsx index 02f99e2..b197a0e 100644 --- a/src/components/EditorPanel.jsx +++ b/src/components/EditorPanel.jsx @@ -8,7 +8,7 @@ export default function EditorPanel({ code, onChange }) { border: '1px solid #444', borderRadius: '8px', backgroundColor: '#1e1e1e', - height: '80%', + height: '70vh', boxShadow: '0 0 10px rgba(255, 0, 255, 0.2)', overflow: 'hidden' }}> diff --git a/src/components/PreviewPanel.jsx b/src/components/PreviewPanel.jsx index 09c70af..9149def 100644 --- a/src/components/PreviewPanel.jsx +++ b/src/components/PreviewPanel.jsx @@ -25,7 +25,9 @@ export default function PreviewPanel({ code }) { color: '#eee', display: 'flex', flexDirection: 'column', - boxSizing: 'border-box' + boxSizing: 'border-box', + height: '67vh', + marginBorder : '1.5rem', }}>
{ setGameId(e.target.value.trim()); setSubmitted(false); }} style={{ width: '100%', - padding: '0.5rem', - marginBottom: '0.75rem', + textAlign: 'center', + padding: '0.2rem', + marginBottom: '0.25rem', border: 'none', borderRadius: 4, background: 'transparent', color: '#fff', - outline: 'none' + outline: 'none', }} /> {!isValid && gameId && ( @@ -93,7 +96,8 @@ export default function PreviewPanel({ code }) {
{submitted && (