feat: show item renders in public database
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
|
||||
<article class="database-item-card" class:talent-card={item.variant === 'talent'}>
|
||||
<header>
|
||||
{#if item.renderUrl}<img class="database-item-render" src={item.renderUrl} alt="" loading="lazy"/>{/if}
|
||||
<div class="database-item-icon">
|
||||
{#if item.gameIcon}<GameIcon name={item.gameIcon} decorative/>{:else}<ItemIcon src={item.iconUrl} alt=""/>{/if}
|
||||
</div>
|
||||
|
||||
@@ -17,6 +17,7 @@ export type DatabaseItem = {
|
||||
kicker: string;
|
||||
variant?: 'talent';
|
||||
iconUrl?: string;
|
||||
renderUrl?: string;
|
||||
gameIcon?: GameIconName;
|
||||
headerBadge?: string;
|
||||
headerMetaIcon?: GameIconName;
|
||||
|
||||
Reference in New Issue
Block a user