Skip to content

Commit

Permalink
allow for images to keep ratio on posts
Browse files Browse the repository at this point in the history
  • Loading branch information
kchenturtles committed Dec 24, 2023
1 parent 5f3e36e commit 564a9fd
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions app/posts/[slug]/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,20 @@
}

.markdown img {
width: 1000px;
height: auto;
max-width: 100%;
width: auto;
height: 600px;
border-radius: 10px;
display: block;
margin: auto;
object-fit: contain;
}

.imageWrapper {
display: flex;
justify-self: center;
justify-content: center;
align-items: center;
align-self: center;
}

.markdown h1,
Expand Down

0 comments on commit 564a9fd

Please sign in to comment.