Skip to content

Commit ebd5a98

Browse files
committed
Fix image error upon entering sell center
1 parent 654088a commit ebd5a98

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/components/shared/map/MapCenter.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -224,17 +224,15 @@ const MapCenter = ({ entryType }: MapCenterProps) => {
224224
</div>
225225
</div>
226226
{/* Static Scope - should always be centered */}
227-
<div className="absolute z-10 pointer-events-none top-[54.2%] left-[49.4%] transform -translate-x-1/2 -translate-y-1/2 w-20 h-20 sm:w-16 sm:h-16">
227+
<div className="absolute z-10 pointer-events-none top-[53.5%] left-[47.3%] transform -translate-x-1/2 -translate-y-1/2" style={{ width: '65px', height: '65px' }}>
228228
<Image
229229
src="/images/icons/scope.png"
230-
className="w-full h-full"
231-
style={{
232-
width: '65px',
233-
height: '65px'
234-
}}
235230
alt="Scope"
231+
layout="fill" // Automatically fills the parent container
232+
className="w-full h-full object-contain" // Ensure proper scaling
236233
/>
237234
</div>
235+
238236
{showPopup && (
239237
<ConfirmDialogX
240238
toggle={() => setShowPopup(false)}

0 commit comments

Comments
 (0)