Skip to content

Commit

Permalink
refactor: improve the readability of the blog posts (#272)
Browse files Browse the repository at this point in the history
* fix: `components` prop no-longer exists

* feat: padding on the sides of the content for large screens
  • Loading branch information
SeanCassiere authored Sep 16, 2024
1 parent 1e4b983 commit 60e9706
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions app/routes/blog.index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,7 @@ function BlogIndex() {
</div>
) : null}
<div className={`text-sm mt-2 text-black dark:text-white`}>
<Markdown
components={{
a: (props) => <span {...props} />,
}}
code={excerpt || ''}
/>
<Markdown code={excerpt || ''} />
</div>
</div>
<div>
Expand Down
2 changes: 1 addition & 1 deletion app/routes/blog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ function Blog() {
<div className="min-h-screen flex flex-col lg:flex-row">
{smallMenu}
{largeMenu}
<div className="flex-1 min-h-0 flex flex-col">
<div className="flex-1 min-h-0 flex flex-col xl:pl-44 xl:pr-56">
<Outlet />
</div>
</div>
Expand Down

0 comments on commit 60e9706

Please sign in to comment.