Skip to content

Commit 355b026

Browse files
committed
style: enhance image responsiveness in markdown and clean up grid layout
1 parent b907b94 commit 355b026

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

app/globals.css

+7
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,13 @@
194194
margin-bottom: 0.5em !important;
195195
}
196196

197+
/* Images */
198+
.markdown-body img {
199+
max-width: 100%;
200+
height: auto;
201+
margin: 1.5em 0;
202+
}
203+
197204
/* Bold Text */
198205
.markdown-body strong,
199206
.markdown-body b {

app/posts/[title]/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export default async function ArticleDetails({
209209
Latest Posts
210210
</Subheading>
211211

212-
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 border border-white border-collapse mb-12 md:mb-48">
212+
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 mb-12 md:mb-48">
213213
{latestArticles.map((article) => (
214214
<article className="border border-white p-8" key={article.id}>
215215
<div className="flex items-center justify-between">

0 commit comments

Comments
 (0)