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

Commit

Permalink
fixed image size and margin
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 3820bc8 commit 4fe95dc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frontend/src/css/road_details.css
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ input[type='checkbox'] {
}

.image-gallery-container {
display: flex; /* Add display: flex */
display: flex;
flex-direction: column; /* Stack children vertically */
justify-content: center; /* Center children vertically */
position: relative;
Expand Down Expand Up @@ -201,8 +201,8 @@ input[type='checkbox'] {
}

.image-thumbnail {
width: 120px; /* Set the fixed width */
height: 105px; /* Set a fixed height to maintain aspect ratio */
width: 120px;
height: 105px;
object-fit: cover; /* Preserve aspect ratio and cover the container */
cursor: pointer;
transition: transform 0.3s ease-in-out;
Expand Down Expand Up @@ -260,15 +260,16 @@ input[type='checkbox'] {
height: 100%;
background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
display: flex;

justify-content: center;
align-items: center;
z-index: 1000; /* Ensure the modal is displayed above other components */
}
.image-modal-content {
position: relative;
max-height: 50vw;
max-width: auto;
overflow: auto;
margin: 0 auto;
background-color: white;
z-index: 1100; /* Ensure content inside the modal is above the background */
}
Expand All @@ -282,6 +283,7 @@ input[type='checkbox'] {
.image-modal-content img {
height: 50vw;
width: auto;
display: block;
}

.close-icon {
Expand Down

0 comments on commit 4fe95dc

Please sign in to comment.