Skip to content

Commit

Permalink
fix: icons show
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyinws committed Mar 16, 2024
1 parent 0d1f880 commit f913dbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions server/core/render/template/groups.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import type { TemplateMeta } from '~/types'

export function generateGroups(meta: TemplateMeta) {
if (!meta.group)
return ''

let groupsSvg = ''
meta.groupIconList.forEach((game: string) => {
groupsSvg += /* html */`
Expand Down
2 changes: 1 addition & 1 deletion server/core/render/template/svg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function generateSvg(meta: TemplateMeta) {
<div class="icon-list">
${generateGroups(meta)}
<img height="35" width="35" src="${meta.badgeIcon}" />
${meta.badge ? `<img height="35" width="35" src="${meta.badgeIcon}" />` : ''}
</div>
</div>
</foreignObject>
Expand Down

0 comments on commit f913dbb

Please sign in to comment.