Skip to content

Commit c0c066d

Browse files
authored
Merge pull request #1 from PocketPi/fix-car-image-crop-17598
Update car image display in AddCarForm component for improved styling…
2 parents b27e9b6 + 7291aaf commit c0c066d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

components/add-car-form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@ export function AddCarForm() {
136136
<div className="space-y-4">
137137
<FormLabel>Car Image</FormLabel>
138138
{imageUrl ? (
139-
<div className="relative w-full aspect-video">
139+
<div className="relative w-full h-96 flex items-center justify-center bg-muted/50 rounded-lg">
140140
<Image
141141
src={imageUrl}
142142
alt="Uploaded car image"
143143
fill
144-
className="object-cover rounded-lg"
144+
className="object-contain rounded-lg"
145145
/>
146146
<Button
147147
type="button"

0 commit comments

Comments
 (0)