Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
Fixed the imageZoom component size
Browse files Browse the repository at this point in the history
  • Loading branch information
zoi23333 authored and Seb-sti1 committed Nov 9, 2023
1 parent b7d0552 commit 3820bc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions frontend/src/Components/RoadDetails/ImageAbleZoom.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';

interface ImageClickProps {
interface ImageZoom {
/** The URL of the image to display in the zoomed view. */
imageUrl: string;
/** A callback function to close the zoomed view. */
Expand All @@ -17,7 +17,7 @@ interface ImageClickProps {
* ImageZoom make images clickable and open a popup to see image closer
*/
// ...
const ImageZoom: React.FC<ImageClickProps> = ({
const ImageZoom: React.FC<ImageZoom> = ({
imageUrl,
onClose,
onNavigate,
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/css/road_details.css
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ input[type='checkbox'] {
}
.image-modal-content {
position: relative;
max-width: 60vw;
max-height: 50vw;
max-width: auto;
overflow: auto;
background-color: white;
z-index: 1100; /* Ensure content inside the modal is above the background */
Expand All @@ -280,7 +280,7 @@ input[type='checkbox'] {
}

.image-modal-content img {
height: 60vw;
height: 50vw;
width: auto;
}

Expand All @@ -301,7 +301,7 @@ input[type='checkbox'] {
height: 30px;
width: 30px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.3);
background-color: rgba(255, 255, 255, 0.5);
}

.nav-button.left {
Expand Down

0 comments on commit 3820bc8

Please sign in to comment.