Improved images
This commit is contained in:
parent
b66c26394d
commit
6be8c74837
|
@ -53,7 +53,7 @@
|
||||||
<section class="mb-2">
|
<section class="mb-2">
|
||||||
<div class="card sm:card-side card-compact bg-secondary text-secondary-content rounded shadow">
|
<div class="card sm:card-side card-compact bg-secondary text-secondary-content rounded shadow">
|
||||||
<figure class="shrink-0">
|
<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>
|
</figure>
|
||||||
<div class="card-body sm:border-l-2 border-current">
|
<div class="card-body sm:border-l-2 border-current">
|
||||||
<h2 class="card-title">About The Author</h2>
|
<h2 class="card-title">About The Author</h2>
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
<div class="rounded">
|
<div class="rounded">
|
||||||
<img src="/api/user/pfp/@ProfileId?size=@Size" alt="" loading="lazy"
|
<img src="/api/user/pfp/@ProfileId?size=@Size" alt="" loading="lazy" width="@Size" onerror="this.remove()" />
|
||||||
onerror="this.remove()" />
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
@using System.Net
|
@using System.Net
|
||||||
|
|
||||||
<a href="@Link.UrlString" rel="me" target="_blank" title="@Link.Url.Host" @attributes="AdditionalAttributes">
|
<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)
|
@(Link.Url.Host.LastIndexOf('.') > -1 ? Link.Url.Host[..Link.Url.Host.LastIndexOf('.')] : Link.Url.Host)
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue