Ad: use card.width, card.height
This commit is contained in:
parent
21ac46bada
commit
d5fd3af903
1 changed files with 7 additions and 1 deletions
|
@ -55,7 +55,13 @@ const Ad: React.FC<IAd> = ({ card, impression }) => {
|
|||
|
||||
{card.image && (
|
||||
<a href={card.url} className='rounded-[10px] overflow-hidden' target='_blank'>
|
||||
<img className='w-full' src={card.image} alt='' />
|
||||
<img
|
||||
className='w-full'
|
||||
width={card.width}
|
||||
height={card.height}
|
||||
src={card.image}
|
||||
alt=''
|
||||
/>
|
||||
</a>
|
||||
)}
|
||||
</Stack>
|
||||
|
|
Loading…
Reference in a new issue