Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: mobile responsiveness on desktop #35

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/components/news/news-article.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const sampleArticleCategories = [
const NewsArticle = () => {
return (
<div className="flex flex-col-reverse py-10 lg:flex-row w-auto lg:py-6 xl:py-4 gap-x-16 border-y-[1px] lg:border-y-[0px] hover:bg-muted/70 lg:rounded-md px-4 md:px-8">
<div className="flex flex-col w-full lg:w-7/12">
<div className="flex flex-col w-full lg:w-7/12 2xl:w-9/12 3xl:w-10/12">
<div className="flex w-full justify-between text-sm text-offblack">
<span>
<ArrowUpRightIcon className="inline-flex" size={16} /> CNA, Guardian
Expand All @@ -43,7 +43,7 @@ const NewsArticle = () => {
))}
</div>
</div>
<div className="flex w-full lg:w-5/12 mb-6 items-center">
<div className="flex w-full lg:w-5/12 2xl:w-3/12 3xl:w-2/12 mb-6 items-center">
<Image
alt=""
height={154}
Expand Down
4 changes: 4 additions & 0 deletions frontend/tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ const config: Config = {
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
screens: {
"3xl": "1920px",
"4xl": "2560px",
},
},
},
// eslint-disable-next-line @typescript-eslint/no-require-imports
Expand Down
Loading