Skip to content

Commit

Permalink
adjust for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
fohte committed Jun 6, 2024
1 parent 78db74f commit 36c6bda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/mdx/CardLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type OgpData = {
}

const collapseDescription = (description: string): string => {
const maxLength = 100
const maxLength = 80

const newDescription = description.substring(0, maxLength)
if (description !== newDescription) {
Expand Down Expand Up @@ -58,7 +58,7 @@ export const CardLink: React.FC<Props> = ({ href }) => {
src={ogp.image}
alt="Link preview image"
height="100%"
maxW="250px"
maxW="min(40%, 250px)"
maxH="200px"
objectFit="cover"
/>
Expand Down

0 comments on commit 36c6bda

Please sign in to comment.