respect aspect ration for works
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user