Skip to content

Commit

Permalink
blog sampleのline-clampがipadでおかしい感じになってたのでちょっと修正した
Browse files Browse the repository at this point in the history
  • Loading branch information
maretol committed Feb 16, 2025
1 parent 84e4b5f commit c87b3da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pages/components/large/article.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function Article({ id, title, updatedAt, parsedContents, categories
</CardHeader>
<CardContent className="relative">
<ArticleContent contents={parsedContents} sample articleID={id} />
<div className="absolute p-6 pt-0 bottom-0 left-0 w-full h-24 bg-gradient-to-t from-white/100 from-20% to-white/0" />
<div className="absolute p-6 pt-0 bottom-0 left-0 w-full h-36 bg-gradient-to-t from-white/100 from-20% to-white/0" />
</CardContent>
<CardFooter>
<Button className="w-full gap-1" asChild>
Expand Down
2 changes: 1 addition & 1 deletion pages/components/middle/article_content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default async function ArticleContent({
tableOfContents?: TableOfContents
}) {
const sampleFlag = sample || false
const sampleClassName = 'content-sample line-clamp-6 max-h-72'
const sampleClassName = 'content-sample line-clamp-6'
const contentClassName = 'content'
const className = sampleFlag ? sampleClassName : contentClassName

Expand Down

0 comments on commit c87b3da

Please sign in to comment.