feat: enhance photo capturing and uploading features with auto-capture and image cropping
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user