[frontend/components] Add bot indicator to notes (ISH-407)
This commit is contained in:
parent
e0d63d9a6b
commit
cd84b480a6
2 changed files with 14 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
@using Iceshrimp.Shared.Schemas.Web
|
||||
@using Iceshrimp.Assets.PhosphorIcons
|
||||
@inject NavigationManager Nav
|
||||
|
||||
@if (Indented == false)
|
||||
|
@ -7,7 +8,13 @@
|
|||
}
|
||||
<div class="name-section">
|
||||
<span class="display-name"><UserDisplayName User="@User"/></span>
|
||||
<span class="identifier">@@@User.Username@(User.Host != null ? $"@{User.Host}" : "")</span>
|
||||
<span class="identifier">
|
||||
@@@User.Username@(User.Host != null ? $"@{User.Host}" : "")
|
||||
@if (User.IsBot)
|
||||
{
|
||||
<Icon Name="Icons.Robot" Size="1.3em" title="Automated"/>
|
||||
}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@code {
|
||||
|
|
|
@ -30,4 +30,10 @@
|
|||
|
||||
.identifier {
|
||||
white-space: wrap;
|
||||
}
|
||||
|
||||
::deep .identifier .ph {
|
||||
display: inline-block;
|
||||
margin-left: 0.5em;
|
||||
vertical-align: middle;
|
||||
}
|
Loading…
Add table
Reference in a new issue