mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-28 04:12:41 +03:00
Try to use the additional new props for card
Only use imageDescription for now
This commit is contained in:
parent
5faf911b17
commit
643b6bce07
1 changed files with 4 additions and 1 deletions
|
@ -1551,14 +1551,17 @@ function Card({ card, instance }) {
|
|||
description,
|
||||
html,
|
||||
providerName,
|
||||
providerUrl,
|
||||
authorName,
|
||||
width,
|
||||
height,
|
||||
image,
|
||||
imageDescription,
|
||||
url,
|
||||
type,
|
||||
embedUrl,
|
||||
language,
|
||||
publishedAt,
|
||||
} = card;
|
||||
|
||||
/* type
|
||||
|
@ -1631,7 +1634,7 @@ function Card({ card, instance }) {
|
|||
width={width}
|
||||
height={height}
|
||||
loading="lazy"
|
||||
alt=""
|
||||
alt={imageDescription || ''}
|
||||
onError={(e) => {
|
||||
try {
|
||||
e.target.style.display = 'none';
|
||||
|
|
Loading…
Reference in a new issue