tweak loading brand icons

This commit is contained in:
Pig Fang 2020-01-16 15:48:28 +08:00
parent 7ecea9e7e6
commit 8bb6f2e53c
2 changed files with 1 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<div class="mb-1">- {{ trans('general.more') }} -</div>
{% for name, provider in providers %}
<a href="{{ url("/auth/login/#{name}") }}" class="btn btn-block bg-light border-secondary">
<img src="{{ url("/app/brand-icons/#{provider.icon}.svg") }}" width="20">
<i class="fab fa-{{ provider.icon }}"></i>&nbsp;
{{ provider.displayName }}
</a>
{% endfor %}

View File

@ -13,9 +13,6 @@ if (Test-Path ./public/app) {
# Run webpack
yarn build
New-Item -ItemType Directory ./public/app/brand-icons
Copy-Item -Path ./node_modules/@fortawesome/fontawesome-free/svgs/brands/*.svg -Destination ./public/app/brand-icons
if ($Simple) {
exit
}