Skip to content

Commit

Permalink
Merge pull request #111 from DJKnaeckebrot/main
Browse files Browse the repository at this point in the history
Fix Font Awesome Icons not Working on the index cards
  • Loading branch information
DJKnaeckebrot authored Jun 29, 2024
2 parents a4b6bc2 + e6c00c7 commit 713e1fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dbd-soft-ui",
"version": "1.7.22-beta.1",
"version": "1.7.23-beta.1",
"typings": "dbd-soft-ui.d.ts",
"author": {
"name": "iMidnight"
Expand Down
6 changes: 5 additions & 1 deletion views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@
</div>
<div class="col-4 text-end">
<div class="icon icon-shape bg-gradient-primary shadow text-center border-radius-md">
<i class="ni ni-<%= stats.icon %> text-lg opacity-10" aria-hidden="true"></i>
<% if (stats.icon.startsWith('fa-')) { %>
<i class="<%= stats.icon %> text-lg opacity-10" aria-hidden="true"></i>
<% } else { %>
<i class="ni-<%= stats.icon %> text-lg opacity-10" aria-hidden="true"></i>
<% } %>
</div>
</div>
</div>
Expand Down

0 comments on commit 713e1fd

Please sign in to comment.