Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions frontend/src/pages/Drawing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Navbar } from '../components/Navbar';
import { analyzeImage } from '../services/api';
import '../styles/pages/drawing.css';

const ERASER_SIZE = 20; // 지우개 크기
const ERASER_SIZE = 30; // 지우개 크기
const PEN_SIZE = 4; // 펜 크기

// 그리기 타입 정의 (house/tree/person)
Expand Down Expand Up @@ -241,10 +241,8 @@ export default function Drawing() {
</motion.div>

{/* 그리기/업로드 영역 */}
<div className="relative w-full max-w-[900px] h-[500px] mx-auto overflow-hidden">
{mode === 'draw' ? (
<div className="drawing-container relative w-full h-full">
{/* ToolBar 컴포넌트 */}
<div className="relative w-full max-w-[900px] mx-auto">
{mode === 'draw' && (
<motion.div
className="tools-container"
initial={{ opacity: 0, x: -20 }}
Expand All @@ -263,8 +261,12 @@ export default function Drawing() {
>
🧽
</button>
</motion.div>
</motion.div>
)}

<div className="h-[500px] overflow-hidden">
{mode === 'draw' ? (
<div className="drawing-container relative w-full h-full">
{/* 지우개 커서 */}
{tool === 'eraser' && (
<div
Expand Down Expand Up @@ -350,6 +352,7 @@ export default function Drawing() {
</div>
)}
</div>
</div>

{error && (
<div className="text-white text-center mt-4">{error}</div>
Expand Down
Loading