Skip to content

Commit 8827fc8

Browse files
committed
fix(article): author's face no longer blurs; add some mt
1 parent 48f7000 commit 8827fc8

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

src/pages/articles/[...id].astro

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,17 @@ const author = article.data.author && (await getMember(article.data.author.id));
2626
focus={Focus.articles}
2727
image={article.data.image}
2828
>
29-
{
30-
article.data.image && (
31-
<div class="text-center lg:px-8">
32-
<Picture
33-
loading="eager"
34-
width="1200"
35-
quality="90"
36-
formats={["avif", "webp"]}
37-
class="skeleton mx-auto rounded-none md:max-w-3xl md:rounded-2xl"
38-
alt="サムネイル"
39-
src={article.data.image}
40-
/>
41-
</div>
42-
)
43-
}
29+
<div class="mt-2 text-center lg:px-8">
30+
<Picture
31+
loading="eager"
32+
width="1200"
33+
quality="90"
34+
formats={["avif", "webp"]}
35+
class="skeleton mx-auto rounded-none md:max-w-3xl md:rounded-2xl"
36+
alt="サムネイル"
37+
src={article.data.image}
38+
/>
39+
</div>
4440
<div
4541
id="meta"
4642
class="mx-auto mt-4 flex max-w-xl flex-wrap justify-around px-4 align-middle sm:gap-8"
@@ -54,11 +50,11 @@ const author = article.data.author && (await getMember(article.data.author.id));
5450
<Picture
5551
alt="著者"
5652
formats={["avif", "webp"]}
57-
width="64"
58-
height="64"
53+
width="256"
54+
height="256"
5955
fit="cover"
6056
src={author.data.faceImage}
61-
class="overflow-clip rounded-full bg-gray-200"
57+
class="h-16 w-16 overflow-clip rounded-full bg-gray-200"
6258
/>
6359
<div class="flex-1">
6460
<div class="text-lg text-gray-800">{author.data.nameJa}</div>

0 commit comments

Comments
 (0)