1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-24 12:13:39 +00:00

Compress images u2fkey/yubikey using avif/webp (#1232)

Co-authored-by: Hinton <oscar@oscarhinton.com>
This commit is contained in:
Simon Legner
2022-01-10 12:37:21 +01:00
committed by GitHub
parent 49f6cfab7f
commit 45284eefb3
10 changed files with 16 additions and 4 deletions

View File

@@ -58,7 +58,11 @@
</ng-container>
<ng-container *ngIf="selectedProviderType === providerType.Yubikey">
<p class="text-center">{{ "insertYubiKey" | i18n }}</p>
<img src="../../images/yubikey.jpg" class="rounded img-fluid mb-3" alt="" />
<picture>
<source srcset="../../images/yubikey.avif" type="image/avif">
<source srcset="../../images/yubikey.webp" type="image/webp">
<img src="../../images/yubikey.jpg" class="rounded img-fluid mb-3" alt="">
</picture>
<div class="form-group">
<label for="code" class="sr-only">{{ "verificationCode" | i18n }}</label>
<input