Skip to content

Commit

Permalink
Fixed the Martianlmagery page for mobile screen
Browse files Browse the repository at this point in the history
  • Loading branch information
Utsavladia committed Jul 14, 2024
1 parent e8dddca commit 561011d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/DisplayDetails/DisplayDetails.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#container {
height: 550px;
max-width: 100%;
width: fit-content;
display: grid;
grid-template-columns: repeat(2, 1fr);
Expand All @@ -14,6 +15,7 @@

#rover-img img {
width: 500px;
max-width: 100%;
border-radius: 20px;
border: 1px solid white;
}
Expand Down
14 changes: 14 additions & 0 deletions src/pages/MarsRover/MarsRover.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,19 @@
#section-2 {
text-align: center;
margin: 10% 0;
max-width: 100%;
overflow: hidden;
}

#rover-wrapper {
max-width: 100%;
margin-top: 10%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
gap: 10%;

}

.rover-card {
Expand Down Expand Up @@ -101,12 +105,14 @@

.rover-left {
width: 500px;
max-width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}

.rover-model {
max-width: 100%;
width: inherit;
padding: 23px;
background: rgb(201, 198, 198);
Expand Down Expand Up @@ -135,6 +141,7 @@
padding: 0;
margin: 0;
width: 400px;
max-width: 100%;
padding: 20px;
}

Expand All @@ -150,13 +157,20 @@
}

.rover-left {
max-width: 100%;
width: 350px;
}

#rover-wrapper {
gap: 50px;
}

.rover-launch-info {
padding: 0.5rem;
border-radius: 0px 0px 20px 20px;
max-width: 100%
}


}

Expand Down

0 comments on commit 561011d

Please sign in to comment.