Skip to content

Commit

Permalink
fix: aspect-ratio (#906)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkaske authored Jun 30, 2024
1 parent d592d22 commit eb0ccfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/components/content/article.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function Article({ post }: { post: Post }) {
<article className="relative mx-auto flex max-w-prose flex-col gap-8">
<div className="grid w-full gap-3">
<h1 className="mb-5 font-cal text-3xl">{post.title}</h1>
<div className="relative h-64 w-full overflow-hidden rounded-lg border border-border">
<div className="relative aspect-video w-full overflow-hidden rounded-lg border border-border">
<Image
src={post.image}
fill={true}
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/content/timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ function Article({
</time>
</div>
</div>
<div className="relative order-1 h-64 w-full md:order-2 md:col-span-4">
<div className="relative order-1 aspect-video w-full overflow-hidden rounded-md border border-border md:order-2 md:col-span-4">
<Link href={href}>
<Image
src={imageSrc}
fill={true}
alt={title}
className="rounded-md border border-border object-cover"
className="object-cover"
/>
</Link>
</div>
Expand Down

0 comments on commit eb0ccfe

Please sign in to comment.