Improved images

This commit is contained in:
Mia Rose Winter 2024-02-07 20:08:55 +01:00
parent b66c26394d
commit 6be8c74837
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E
3 changed files with 3 additions and 4 deletions

View file

@ -53,7 +53,7 @@
<section class="mb-2">
<div class="card sm:card-side card-compact bg-secondary text-secondary-content rounded shadow">
<figure class="shrink-0">
<img class="sm:max-h-56" src="/api/user/pfp/@Article.Author.Id?size=400" alt="" width="800">
<img class="sm:max-h-56" src="/api/user/pfp/@Article.Author.Id?size=400" alt="" width="400" loading="async">
</figure>
<div class="card-body sm:border-l-2 border-current">
<h2 class="card-title">About The Author</h2>

View file

@ -1,7 +1,6 @@
<div class="avatar">
<div class="rounded">
<img src="/api/user/pfp/@ProfileId?size=@Size" alt="" loading="lazy"
onerror="this.remove()" />
<img src="/api/user/pfp/@ProfileId?size=@Size" alt="" loading="lazy" width="@Size" onerror="this.remove()" />
</div>
</div>

View file

@ -2,7 +2,7 @@
@using System.Net
<a href="@Link.UrlString" rel="me" target="_blank" title="@Link.Url.Host" @attributes="AdditionalAttributes">
<img src="@("/api/proxy/favicon/" + WebUtility.UrlEncode(Link.Url.Host))" alt="" width="32" height="32" class="w-5 h-5" />
<img src="@("/api/proxy/favicon/" + WebUtility.UrlEncode(Link.Url.Host))" alt="" width="32" height="32" class="w-5 h-5" loading="async" />
@(Link.Url.Host.LastIndexOf('.') > -1 ? Link.Url.Host[..Link.Url.Host.LastIndexOf('.')] : Link.Url.Host)
</a>