From c9e76b10509750982c93eb7f0b05b86b5fca274b Mon Sep 17 00:00:00 2001 From: plumbestie Date: Tue, 23 Jun 2026 00:45:28 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[Fix]=20=EC=B6=9C=EC=84=9D=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=9E=AC=EC=83=9D=EC=84=B1=20&=20=EC=A2=85?= =?UTF-8?q?=EB=A3=8C=20=EB=B2=84=ED=8A=BC=20=EC=9E=90=EB=8F=99=20=EB=85=B8?= =?UTF-8?q?=EC=B6=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/package.json | 2 +- frontend/src/pages/pirocheck/attendance/Attendance.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 63bac28..45a8aad 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "piroinfront", - "proxy": "http://13.209.73.127:8080", + "proxy": "http://localhost:8080", "version": "0.1.0", "private": true, "dependencies": { diff --git a/frontend/src/pages/pirocheck/attendance/Attendance.js b/frontend/src/pages/pirocheck/attendance/Attendance.js index 5119587..30c20b0 100644 --- a/frontend/src/pages/pirocheck/attendance/Attendance.js +++ b/frontend/src/pages/pirocheck/attendance/Attendance.js @@ -48,13 +48,13 @@ function AdminView() { const handleGenerate = async () => { const res = await authFetch('/api/admin/attendance/start', { method: 'POST' }); const data = await res.json(); - setCode(data.code); - if (data.isSuccess) { - setCode(data.result.code); + + if (res.ok && data.code) { + setCode(data.code); setHasCode(true); setMessage(''); } else { - setMessage(data.message); + setMessage(data.message || '코드 생성 실패'); } }; From cbaf67520b1d5c7e07c11eec6e72226069e3e22a Mon Sep 17 00:00:00 2001 From: plumbestie Date: Tue, 23 Jun 2026 00:59:20 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[Fix]=20=EC=B6=9C=EC=84=9D=20=EB=B2=84?= =?UTF-8?q?=ED=8A=BC=20=EC=9C=84=EC=B9=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pirocheck/attendance/Attendance.module.css | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/frontend/src/pages/pirocheck/attendance/Attendance.module.css b/frontend/src/pages/pirocheck/attendance/Attendance.module.css index 6368969..950200b 100644 --- a/frontend/src/pages/pirocheck/attendance/Attendance.module.css +++ b/frontend/src/pages/pirocheck/attendance/Attendance.module.css @@ -87,27 +87,28 @@ align-items: center; background: var(--gray600); border-radius: 10px; - overflow: hidden; width: 480px; max-width: calc(100vw - 56px); margin-bottom: 16px; - padding: 3px 3px 3px 20px; + padding: 3px; box-sizing: border-box; } .codeInput { flex: 1; + min-width: 0; background: transparent; border: none; outline: none; color: var(--white); font-family: var(--font-main); font-size: 1rem; + padding-left: 20px; } - .codeInput::placeholder { color: var(--gray200); } .submitBtn { + flex-shrink: 0; padding: 10px 20px; background: var(--dark); border: none; @@ -211,6 +212,10 @@ width: calc(100vw - 56px); } + .codeInput { + font-size: 85%; + } + .cloverSvg { width: 63px; height: 63px; @@ -227,4 +232,8 @@ padding: 24px 28px; box-sizing: border-box; } + + .submitBtn { + flex-shrink: 0; + } } \ No newline at end of file