Improved UserLink accessability

This commit is contained in:
Mia Rose Winter 2024-02-03 13:15:53 +01:00
parent d0ad6d8cb5
commit c9ce2e1ed9
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E

View file

@ -1,7 +1,7 @@
@using Wave.Data
<a href="@Link.UrlString" rel="me" target="_blank" @attributes="AdditionalAttributes">
<img src="@("https://" + Link.Url.Host + "/favicon.png")" alt="" width="16" height="16" data-errors="0" />
<a href="@Link.UrlString" rel="me" target="_blank" title="@Link.Url.Host" @attributes="AdditionalAttributes">
<img src="@("https://" + Link.Url.Host + "/favicon.png")" alt="" width="16" height="16" />
@(Link.Url.Host.LastIndexOf('.') > -1 ? Link.Url.Host[..Link.Url.Host.LastIndexOf('.')] : Link.Url.Host)
</a>