Skip to content

Commit

Permalink
Fix image styles in blog
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey85 committed Jan 28, 2025
1 parent 14ce29d commit 786dc0a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion AboutMe/Wasm/Pages/Blog.razor
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ else
</MudText>
</MudCardHeader>
<MudCardContent>
@(new MarkupString(post.ContentHtml))
<div class="content-wrapper">
@(new MarkupString(post.ContentHtml))
</div>
</MudCardContent>
<MudCardActions>
<MudText Typo="Typo.subtitle2">
Expand All @@ -63,3 +65,11 @@ else
}
</MudStack>
}

<style>
.content-wrapper img {
max-width: 100%;
height: auto;
display: block;
}
</style>

0 comments on commit 786dc0a

Please sign in to comment.