Skip to content

Commit

Permalink
[Examples] Remove horizontal scroll in CMS examples (#16295)
Browse files Browse the repository at this point in the history
  • Loading branch information
todortotev authored Aug 18, 2020
1 parent 1318a8d commit b0d2a80
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const CoverImage = ({ title, src, slug }: Props) => {
/>
)
return (
<div className="-mx-5 sm:mx-0">
<div className="sm:mx-0">
{slug ? (
<Link as={`/posts/${slug}`} href="/posts/[slug]">
<a aria-label={title}>{image}</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const PostHeader = ({ title, coverImage, date, author }: Props) => {
<div className="hidden md:block md:mb-12">
<Avatar name={author.name} picture={author.picture} />
</div>
<div className="mb-8 md:mb-16 -mx-5 sm:mx-0">
<div className="mb-8 md:mb-16 sm:mx-0">
<CoverImage title={title} src={coverImage} />
</div>
<div className="max-w-2xl mx-auto">
Expand Down
2 changes: 1 addition & 1 deletion examples/blog-starter/components/cover-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function CoverImage({ title, src, slug }) {
/>
)
return (
<div className="-mx-5 sm:mx-0">
<div className="sm:mx-0">
{slug ? (
<Link as={`/posts/${slug}`} href="/posts/[slug]">
<a aria-label={title}>{image}</a>
Expand Down
2 changes: 1 addition & 1 deletion examples/blog-starter/components/post-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default function PostHeader({ title, coverImage, date, author }) {
<div className="hidden md:block md:mb-12">
<Avatar name={author.name} picture={author.picture} />
</div>
<div className="mb-8 md:mb-16 -mx-5 sm:mx-0">
<div className="mb-8 md:mb-16 sm:mx-0">
<CoverImage title={title} src={coverImage} />
</div>
<div className="max-w-2xl mx-auto">
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-agilitycms/components/cover-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function CoverImage({ title, responsiveImage, slug }) {
/>
)
return (
<div className="-mx-5 sm:mx-0">
<div className="sm:mx-0">
{slug ? (
<Link href="/[...slug]" as={`/posts/${slug}`}>
<a aria-label={title}>{image}</a>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-buttercms/components/cover-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Link from 'next/link'

export default function CoverImage({ title, url, slug }) {
return (
<div className="-mx-5 sm:mx-0">
<div className="sm:mx-0">
{slug ? (
<Link as={`/posts/${slug}`} href="/posts/[slug]">
<a aria-label={title}>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-contentful/components/cover-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function CoverImage({ title, url, slug }) {
/>
)
return (
<div className="-mx-5 sm:mx-0">
<div className="sm:mx-0">
{slug ? (
<Link as={`/posts/${slug}`} href="/posts/[slug]">
<a aria-label={title}>{image}</a>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-cosmic/components/cover-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function CoverImage({ title, url, slug }) {
/>
)
return (
<div className="-mx-5 sm:mx-0">
<div className="sm:mx-0">
{slug ? (
<Link as={`/posts/${slug}`} href="/posts/[slug]">
<a aria-label={title}>{image}</a>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-datocms/components/cover-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function CoverImage({ title, responsiveImage, slug }) {
/>
)
return (
<div className="-mx-5 sm:mx-0">
<div className="sm:mx-0">
{slug ? (
<Link as={`/posts/${slug}`} href="/posts/[slug]">
<a aria-label={title}>{image}</a>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-graphcms/components/cover-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function CoverImage({ title, url, slug }) {
)

return (
<div className="-mx-5 sm:mx-0">
<div className="sm:mx-0">
{slug ? (
<Link as={`/posts/${slug}`} href="/posts/[slug]">
<a aria-label={title}>{image}</a>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-prismic/components/cover-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function CoverImage({ title, url, slug }) {
/>
)
return (
<div className="-mx-5 sm:mx-0">
<div className="sm:mx-0">
{slug ? (
<Link as={`/posts/${slug}`} href="/posts/[slug]">
<a aria-label={title}>{image}</a>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-sanity/components/cover-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function CoverImage({ title, url, slug }) {
)

return (
<div className="-mx-5 sm:mx-0">
<div className="sm:mx-0">
{slug ? (
<Link as={`/posts/${slug}`} href="/posts/[slug]">
<a aria-label={title}>{image}</a>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-storyblok/components/cover-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Link from 'next/link'

export default function CoverImage({ title, url, slug }) {
return (
<div className="-mx-5 sm:mx-0">
<div className="sm:mx-0">
{slug ? (
<Link as={`/posts/${slug}`} href="/posts/[slug]">
<a aria-label={title}>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-strapi/components/cover-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function CoverImage({ title, url, slug }) {
url.startsWith('/') ? process.env.NEXT_PUBLIC_STRAPI_API_URL : ''
}${url}`
return (
<div className="-mx-5 sm:mx-0">
<div className="sm:mx-0">
{slug ? (
<Link as={`/posts/${slug}`} href="/posts/[slug]">
<a aria-label={title}>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-takeshape/components/cover-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function CoverImage({ title, coverImage, slug }) {
/>
)
return (
<div className="-mx-5 sm:mx-0">
<div className="sm:mx-0">
{slug ? (
<Link as={`/posts/${slug}`} href="/posts/[slug]">
<a aria-label={title}>{image}</a>
Expand Down
2 changes: 1 addition & 1 deletion examples/cms-wordpress/components/cover-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function CoverImage({ title, coverImage, slug }) {
/>
)
return (
<div className="-mx-5 sm:mx-0">
<div className="sm:mx-0">
{slug ? (
<Link as={`/posts/${slug}`} href="/posts/[slug]">
<a aria-label={title}>{image}</a>
Expand Down

0 comments on commit b0d2a80

Please sign in to comment.