respect aspect ration for works

This commit is contained in:
2026-05-14 11:36:36 +02:00
parent d74f682155
commit e722c9b4e7
6 changed files with 14 additions and 13 deletions
+2 -4
View File
@@ -128,8 +128,8 @@ export default function PostList({ posts: initialPosts, isAdmin = false }: Props
aria-label={`View ${displayTitle}`}
>
<div
className="plate-image"
style={{ aspectRatio: layout.aspect }}
className={`plate-image ${hasCover ? 'is-natural' : ''}`}
style={hasCover ? undefined : { aspectRatio: layout.aspect }}
>
{hasCover ? (
<img
@@ -170,8 +170,6 @@ export default function PostList({ posts: initialPosts, isAdmin = false }: Props
<span>{formatMonth(post.date)}</span>
<span className="plate-caption-sep" aria-hidden="true">·</span>
<span>{formatYear(post.date)}</span>
<span className="plate-caption-sep" aria-hidden="true">·</span>
<span>{post.reading_time} min</span>
</div>
</div>
</a>