feat: enhance photo capturing and uploading features with auto-capture and image cropping

This commit is contained in:
mrkad@rpi
2026-01-17 13:20:17 +07:00
parent e90c06230b
commit 39afc25aba
5 changed files with 322 additions and 53 deletions

View File

@@ -52,14 +52,16 @@ const getGridStyle = () => {
display: 'grid',
gridTemplateColumns: '1fr',
gridTemplateRows: 'repeat(4, 1fr)',
gap: '8px'
gap: '8px',
aspectRatio: '1/5' // ทำให้แต่ละภาพยาวขึ้น (1:2 aspect ratio รวม)
}
} else {
return {
display: 'grid',
gridTemplateColumns: 'repeat(2, 1fr)',
gridTemplateRows: 'repeat(2, 1fr)',
gap: '8px'
gap: '8px',
aspectRatio: '1/1' // 2x2 เป็น square
}
}
}
@@ -194,7 +196,6 @@ const getGridStyle = () => {
background: #f8f9fa;
border-radius: 8px;
padding: 12px;
aspect-ratio: 3/4;
}
.photo-cell {