File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import React from "react";
22
33export function MainSection ( props : { children : React . ReactNode } ) {
44 return (
5- < main className = "min-h-screen px-4 py-0 flex-1 flex flex-column justify-center " >
5+ < main className = "min-h-screen px-4 py-0 flex-1 flex flex-column max-w-screen-md mx-auto " >
66 { props . children }
77 </ main >
88 ) ;
Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ const Home: NextPage = () => {
5050 </ Head >
5151
5252 < MainSection >
53- < section className = "text-gray-600 body-font overflow-hidden" >
54- < div className = "container px-5 py-24 mx-auto" >
53+ < section className = "text-gray-600 body-font overflow-hidden w-full " >
54+ < div className = "container px-3 py-24 mx-auto" >
5555 < div className = "-my-8" >
5656 { indexQuery ?. data ?. feed ?. edges . map ( ( edge ) => (
5757 < FeedItem post = { edge . node ! } key = { edge . cursor } />
Original file line number Diff line number Diff line change @@ -112,16 +112,18 @@ const Item: NextPage = () => {
112112 < title > supanews | { post . node ?. title } </ title >
113113 < meta name = "description" content = { post . node ?. url } />
114114 </ Head >
115- < section className = "text-gray-600 body-font overflow-hidden" >
115+ < section className = "text-gray-600 body-font overflow-hidden w-full " >
116116 < div className = "container px-5 py-24 mx-auto" >
117117 < FeedItem post = { post . node } key = { post . cursor } />
118118
119- < PostCommentForm postId = { post . node . id } />
119+ < div className = "max-w-md" >
120+ < PostCommentForm postId = { post . node . id } />
120121
121- < div className = "mt-10" >
122- { post . node ?. comments ?. edges . map ( ( edge ) => (
123- < CommentItem comment = { edge . node ! } key = { edge . cursor } />
124- ) ) }
122+ < div className = "mt-10" >
123+ { post . node ?. comments ?. edges . map ( ( edge ) => (
124+ < CommentItem comment = { edge . node ! } key = { edge . cursor } />
125+ ) ) }
126+ </ div >
125127 </ div >
126128 </ div >
127129 </ section >
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ const Newest: NextPage = () => {
4343 </ Head >
4444
4545 < MainSection >
46- < section className = "text-gray-600 body-font overflow-hidden" >
46+ < section className = "text-gray-600 body-font overflow-hidden w-full " >
4747 < div className = "container px-5 py-24 mx-auto" >
4848 < div className = "-my-8" >
4949 { newestQuery ?. data ?. feed ?. edges . map ( ( edge ) => (
You can’t perform that action at this time.
0 commit comments