Skip to content

Commit

Permalink
Merge pull request #3 from byrdocs/webp
Browse files Browse the repository at this point in the history
Use webp
  • Loading branch information
YouXam authored Jun 23, 2024
2 parents 88f7bfe + a8b4279 commit 015dd33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export const ItemDisplay: React.FC<{ item: Item, index?: number }> = ({ item, in
<ItemCard>
<ItemCover
index={index}
src={url("cover", item.data.md5, "jpg")}
src={url("cover", item.data.md5, "webp")}
alt="书籍封面"
onClick={() => {
openDialog(url("cover", item.data.md5, "jpg"));
Expand Down Expand Up @@ -254,7 +254,7 @@ export const ItemDisplay: React.FC<{ item: Item, index?: number }> = ({ item, in
<ItemCard>
<ItemCover
index={index}
src={url("cover", item.data.md5, "jpg")}
src={url("cover", item.data.md5, "webp")}
alt="试卷封面"
onClick={() => {
openDialog(url("cover", item.data.md5, "jpg"));
Expand Down Expand Up @@ -299,7 +299,7 @@ export const ItemDisplay: React.FC<{ item: Item, index?: number }> = ({ item, in
<ItemCard>
<ItemCover
index={index}
src={url("cover", item.data.md5, "jpg")}
src={url("cover", item.data.md5, "webp")}
alt="资料封面"
onClick={() => {
openDialog(url("cover", item.data.md5, "jpg"));
Expand Down

0 comments on commit 015dd33

Please sign in to comment.