Skip to content

Commit

Permalink
fix(fe): fix width when page small
Browse files Browse the repository at this point in the history
  • Loading branch information
jimin9038 committed Dec 31, 2024
1 parent 8a202ef commit 282b581
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 10 additions & 10 deletions frontend/app/(main)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -210,35 +210,35 @@ export default async function Home() {
</div>
</section>
<section className="flex w-full max-w-6xl flex-col border-b-2 border-r-gray-500 lg:flex-row">
<div className="h-30 w-full border-r-2 border-r-gray-100 md:w-1/2 lg:w-1/3 lg:pr-6">
<div className="h-30 w-full border-r-2 border-r-gray-100 lg:w-1/3 lg:pr-6">
<SmallArticle article={secondSectionArticles[0]}></SmallArticle>
<SmallArticle article={secondSectionArticles[1]}></SmallArticle>
</div>
<div className="h-30 w-full border-r-2 border-r-gray-100 md:w-1/2 lg:w-1/3 lg:px-6">
<div className="h-30 w-full border-r-2 border-r-gray-100 lg:w-1/3 lg:px-6">
<SmallArticle article={secondSectionArticles[2]}></SmallArticle>
<SmallArticle article={secondSectionArticles[3]}></SmallArticle>
</div>
<div className="h-30 w-full md:w-1/2 lg:w-1/3 lg:pl-6">
<div className="h-30 w-full lg:w-1/3 lg:pl-6">
<BigBanner banner={Big1Banner}></BigBanner>
</div>
</section>
<section className="flex w-full max-w-6xl flex-col border-b-2 border-r-gray-500 lg:flex-row">
<div className="h-30 w-full md:w-1/2 lg:w-1/3 lg:pr-6 ">
<section className="flex w-full max-w-6xl flex-row border-b-2 border-r-gray-500">
<div className="h-30 w-full lg:w-1/3 lg:pr-6 ">
<SmallBanner banner={Sub1Banner}></SmallBanner>
</div>
<div className="h-30 w-full md:w-1/2 lg:w-1/3 lg:px-6">
<div className="h-30 w-full lg:w-1/3 lg:px-6">
<SmallBanner banner={Sub2Banner}></SmallBanner>
</div>
<div className="h-30 w-full md:w-1/2 lg:w-1/3 lg:pl-6">
<div className="h-30 w-full lg:w-1/3 lg:pl-6">
<SmallBanner banner={Sub3Banner}></SmallBanner>
</div>
</section>
<section className="flex w-full max-w-6xl flex-col border-b-2 border-r-gray-500 lg:flex-row">
<div className="h-30 w-full md:w-1/2 lg:pr-6">
<section className="flex w-full max-w-6xl flex-row border-b-2 border-r-gray-500">
<div className="h-30 w-full pr-6 md:w-1/2">
<MiddleArticle article={thirdSectionArticles[0]}></MiddleArticle>
<MiddleArticle article={thirdSectionArticles[1]}></MiddleArticle>
</div>
<div className="h-30 w-full md:w-1/2 lg:pl-6">
<div className="h-30 w-full pl-6 md:w-1/2">
<MiddleArticle article={thirdSectionArticles[2]}></MiddleArticle>
<MiddleArticle article={thirdSectionArticles[3]}></MiddleArticle>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/ui/SmallArticle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function SmallArticle({ article }: { article: Article }) {
></Image>
</div>
<div className="prose flex lg:max-h-16 lg:overflow-hidden lg:overflow-ellipsis lg:text-sm lg:font-light">
<h1> {article?.content} </h1>
<h1 className="line-clamp-5"> {article?.content} </h1>
</div>
</div>
</article>
Expand Down

0 comments on commit 282b581

Please sign in to comment.