Skip to content

Commit

Permalink
Add margin on small screen
Browse files Browse the repository at this point in the history
  • Loading branch information
ixartz committed Apr 27, 2021
1 parent 274b54d commit b8da6b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/blog/BlogGallery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const BlogGallery = (props: IBlogGalleryProps) => (
</a>
</Link>

<div>{format(new Date(elt.date), 'LLL d, yyyy')}</div>
<div className="text-right">{format(new Date(elt.date), 'LLL d, yyyy')}</div>
</li>
))}
</ul>
Expand Down
4 changes: 4 additions & 0 deletions src/content/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ const Content = (props: IContentProps) => (

<style jsx>
{`
.content :global(*) {
@apply break-words;
}
.content :global(p) {
@apply my-6;
}
Expand Down
2 changes: 1 addition & 1 deletion src/templates/Main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type IMainProps = {
};

const Main = (props: IMainProps) => (
<div className="antialiased w-full text-gray-700">
<div className="antialiased w-full text-gray-700 px-3 md:px-0">
{props.meta}

<div className="max-w-screen-md mx-auto">
Expand Down

0 comments on commit b8da6b9

Please sign in to comment.