MDL-82210 output: Add support to FontAwesome families

The solid family was chosen by default when Font Awesome was upgraded
from 4 to 6, but FA6 has more families, like regular or brands.
This commit adds only the fa class to the icon when no other family
class is used.
This commit is contained in:
Sara Arjona
2024-07-12 10:59:00 +02:00
parent fd487cd3f2
commit 774ea7ca29
4 changed files with 47 additions and 2 deletions
@@ -8,7 +8,7 @@
<div class="small text-truncate" data-toggle="tooltip" data-placement="bottom" title="{{ .name }}">{{ .name }}</div>
<div class="row g-0">
<div class="col-sm-6 d-flex align-items-center justify-content-center">
<i class="fa {{ .icon }} fa-2x"></i>
<i class="{{ .icon }} fa-2x"></i>
</div>
<div class="col-sm-6 d-flex align-items-center justify-content-center">
{{ .standardicon | safeHTML }}