Skip to content

Commit

Permalink
CSS hack to force a reasonable aspect ratio on mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
WillBAnders committed Dec 9, 2023
1 parent 4c483a1 commit 4b52586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/ImageCarousel.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}

.carouselItem {
max-height: 600px;
max-height: min(600px, 100vw / 2); /* hack to force reasonable aspect ratio */
width: 100vw;
display: flex;
justify-content: center;
Expand Down

0 comments on commit 4b52586

Please sign in to comment.