Skip to content

Commit

Permalink
Fixed styling issue from Article/Blog view (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
aumkar authored Aug 22, 2024
1 parent 785530c commit 25fee21
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ArticleView, getServersideArticle } from "./article-view";
export default async function ArticlePage({ params, searchParams }) {
return (
<Layout>
<div className="prose mx-4 mt-16 text-black sm:mx-6 lg:mx-auto">
<div className="prose mx-4 mt-16 text-black sm:mx-6 md:mx-auto">
<Suspense fallback={<SkeletonArticleView />}>
<ArticleView params={params} searchParams={searchParams} />
</Suspense>
Expand Down
5 changes: 0 additions & 5 deletions starters/nextjs-starter-approuter-ts/tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ module.exports = {
maxWidth: "80ch",
img: {
borderRadius: "1rem",
maxWidth: "none !important",
maxHeight: "none !important",
aspectRatio: "3/2",
marginTop: "4rem !important",
marginBottom: "4rem !important",
},
a: {
color: "rgb(17, 85, 204)", // "dark cornflower blue 2" in Google Docs
Expand Down
4 changes: 2 additions & 2 deletions starters/nextjs-starter-ts/pages/articles/[...uri].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export default function ArticlePage({ article, grant }: ArticlePageProps) {
}}
/>

<div className="prose mx-4 mt-16 text-black sm:mx-6 lg:mx-auto">
<ArticleView article={article} onlyContent />
<div className="prose mx-4 mt-16 text-black sm:mx-6 md:mx-auto">
<ArticleView article={article} />
</div>
</Layout>
</PantheonProvider>
Expand Down
5 changes: 0 additions & 5 deletions starters/nextjs-starter-ts/tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ module.exports = {
maxWidth: "80ch",
img: {
borderRadius: "1rem",
maxWidth: "none !important",
maxHeight: "none !important",
aspectRatio: "3/2",
marginTop: "4rem !important",
marginBottom: "4rem !important",
},
a: {
color: "rgb(17, 85, 204)", // "dark cornflower blue 2" in Google Docs
Expand Down
4 changes: 2 additions & 2 deletions starters/nextjs-starter/pages/articles/[...uri].jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export default function ArticlePage({ article, grant }) {
}}
/>

<div className="prose mx-4 mt-16 text-black sm:mx-6 lg:mx-auto">
<ArticleView article={article} onlyContent />
<div className="prose mx-4 mt-16 text-black sm:mx-6 md:mx-auto">
<ArticleView article={article} />
</div>
</Layout>
</PantheonProvider>
Expand Down
5 changes: 0 additions & 5 deletions starters/nextjs-starter/tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ module.exports = {
maxWidth: "80ch",
img: {
borderRadius: "1rem",
maxWidth: "none !important",
maxHeight: "none !important",
aspectRatio: "3/2",
marginTop: "4rem !important",
marginBottom: "4rem !important",
},
a: {
color: "rgb(17, 85, 204)", // "dark cornflower blue 2" in Google Docs
Expand Down

0 comments on commit 25fee21

Please sign in to comment.