Make thumbnails consistent
This commit is contained in:
parent
97ed46af78
commit
dcbf094a0e
2 changed files with 5 additions and 5 deletions
src/pages
|
@ -40,7 +40,7 @@ const posts = await Promise.all(
|
||||||
data-tooltip
|
data-tooltip
|
||||||
>
|
>
|
||||||
{post.data.thumbnail ? (
|
{post.data.thumbnail ? (
|
||||||
<div class="flex aspect-square max-w-[288px] justify-center">
|
<div class="flex aspect-square max-w-[192px] justify-center">
|
||||||
<Image
|
<Image
|
||||||
loading={i < 10 ? "eager" : "lazy"}
|
loading={i < 10 ? "eager" : "lazy"}
|
||||||
class="u-photo m-auto"
|
class="u-photo m-auto"
|
||||||
|
@ -50,7 +50,7 @@ const posts = await Promise.all(
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
<div class="max-w-[288px] text-sm">
|
<div class="max-w-[192px] text-sm">
|
||||||
<span class="p-name" aria-label="Title">
|
<span class="p-name" aria-label="Title">
|
||||||
{post.data.title}
|
{post.data.title}
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -40,17 +40,17 @@ const games = await Promise.all(
|
||||||
data-tooltip
|
data-tooltip
|
||||||
>
|
>
|
||||||
{game.data.thumbnail ? (
|
{game.data.thumbnail ? (
|
||||||
<div class="flex aspect-square max-w-[288px] justify-center">
|
<div class="flex aspect-square max-w-[192px] justify-center">
|
||||||
<Image
|
<Image
|
||||||
loading={i < 10 ? "eager" : "lazy"}
|
loading={i < 10 ? "eager" : "lazy"}
|
||||||
class="u-photo m-auto"
|
class="u-photo m-auto"
|
||||||
src={game.data.thumbnail}
|
src={game.data.thumbnail}
|
||||||
alt={`Thumbnail for ${game.data.title}`}
|
alt={`Thumbnail for ${game.data.title}`}
|
||||||
width={288}
|
width={192}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
<div class="max-w-[288px] text-sm">
|
<div class="max-w-[192px] text-sm">
|
||||||
<span class="p-name" aria-label="Title">
|
<span class="p-name" aria-label="Title">
|
||||||
{game.data.title}
|
{game.data.title}
|
||||||
</span>
|
</span>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue