Skip to content

Commit

Permalink
Use compendium image in overview
Browse files Browse the repository at this point in the history
  • Loading branch information
HarmlessHarm committed Nov 8, 2024
1 parent abf62de commit a2928ab
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/components/encounters/Overview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,16 +212,17 @@
backgroundImage: npcAvatar(data.row, entity_data)
? 'url(\'' + npcAvatar(data.row, entity_data) + '\')'
: '',
'border-color': data.row.color_label ? data.row.color_label : ``,
'background-color': data.row.color_label ? data.row.color_label : ``,
border: data.row.color_label ? `2px solid ${data.row.color_label}` : 'none',
color: data.row.color_label ? data.row.color_label : ``,
}"
>
<i
aria-hidden="true"
v-if="!npcAvatar(data.row, entity_data)"
class="hki-monster"
:class="{ 'neutral-1': data.row.color_label }"
<hk-compendium-image
v-if="
!npcAvatar(data.row, entity_data) &&
data.row.id &&
entity_data[data.row.id].url
"
:value="entity_data[data.row.id].url"
/>
</span>

Expand Down

0 comments on commit a2928ab

Please sign in to comment.