Skip to content

Commit

Permalink
feat: adjust photo placement when screen not wide enough
Browse files Browse the repository at this point in the history
  • Loading branch information
iamogbz committed Jan 17, 2024
1 parent ffa3680 commit 9b7a500
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/PoemCard.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
gap: 4px;
background-color: transparent;
border-radius: 4px;
position: relative;

@media (max-width:640px) {
flex-direction: column;
}
}

.poem-card-details .poem-card-content {
Expand Down Expand Up @@ -92,6 +97,10 @@

transition: height 0.3s ease-in-out, width 0.3s ease-in-out;

@media (max-width:640px) {
width: 100%;
}

&::before {
content: '';

Expand Down

0 comments on commit 9b7a500

Please sign in to comment.