Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/entities/post/detail/PostBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ interface Props {
const PostBody = ({ content, loading }: Props) => {
return (
<div
className={'max-w-3xl post-body px-4 py-16 min-h-[500px] relative '}
className={'max-w-full post-body px-4 py-16 min-h-[500px] relative '}
>
{loading ? (
<div className={'w-1/3 mx-auto'}>
Expand Down
2 changes: 1 addition & 1 deletion app/entities/post/detail/PostTOC.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const PostTOC = ({ postContent }: { postContent: string }) => {
};

return (
<div className="fixed post-toc hidden lg:block w-[280px] top-1/2 -translate-y-1/2 left-[calc(50%+524px)] transition-all text-sm bg-gray-100/80 rounded-md p-4 text-black">
<div className="fixed post-toc hidden 2xl:block w-[280px] top-[calc(50%+100px)] -translate-y-1/2 left-[calc(50%+524px)] transition-all text-sm bg-gray-100/80 rounded-md p-4 text-black">
<h4 className={'text-xl font-bold mb-2'}>📌 Table of Contents</h4>
<ul className={'list-none'}>
{parseHeadings(postContent).map((heading) => {
Expand Down
1 change: 1 addition & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ article.post h6 {

article.post .post-body {
max-width: 768px;
width: 100%;
margin: 0 auto;
font-size: 1.1em;
line-height: 150%;
Expand Down