Skip to content

Commit a4511b6

Browse files
luisxcamCopilot
andcommitted
fix: unify content max-width across all pages
Apply lg:max-w-4xl globally on the content wrapper in Index.tsx so every section (about, projects, blog, playlist, contact) uses the same width cap on desktop. Remove per-section max-w-4xl from BlogSection and BlogPostReader since the global wrapper now handles it. Mobile and tablet remain full-width (constraint only activates at lg+). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7595e04 commit a4511b6

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/BlogPostReader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface BlogPostReaderProps {
1616

1717
const BlogPostReader = ({ post, onBack }: BlogPostReaderProps) => {
1818
return (
19-
<div className="space-y-4 max-w-4xl">
19+
<div className="space-y-4">
2020
<button
2121
onClick={onBack}
2222
aria-label="back to blog list"

src/components/sections/BlogSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const BlogSection = ({ slug }: BlogSectionProps) => {
1818
}
1919

2020
return (
21-
<div className="space-y-4 max-w-4xl">
21+
<div className="space-y-4">
2222
<TerminalWindow title="~/portfolio/blog/">
2323
<div className="text-xs text-muted-foreground">
2424
<span className="text-terminal">$</span> find blog/ -name "*.md" | sort -r

src/pages/Index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const Index = () => {
5151
</div>
5252

5353
{/* Content */}
54-
<div className="p-6 lg:p-10 pt-16 lg:pt-6 pb-10">
54+
<div className="p-6 lg:p-10 pt-16 lg:pt-6 pb-10 lg:max-w-4xl">
5555
{sections[activeSection]}
5656
</div>
5757

0 commit comments

Comments
 (0)