- canvas 크기 변경 및 가운데 정렬

This commit is contained in:
minsik 2024-09-11 15:02:00 +09:00
parent 172fe8d8a7
commit e6a526535b
2 changed files with 3 additions and 3 deletions

View File

@ -8,7 +8,7 @@ export default function CanvasFrame() {
useEvent()
return (
<div className="canvas-frame">
<div className="canvas-frame" style={{ display: 'flex', justifyContent: 'center' }}>
<canvas ref={canvasRef} id={'canvas'}></canvas>
</div>
)

View File

@ -29,8 +29,8 @@ export const fontSizeState = atom({
export const canvasSizeState = atom({
key: 'canvasSize',
default: {
vertical: 1500,
horizontal: 1500,
vertical: 1000,
horizontal: 1600,
},
})