[frontend/components] Use InlineEmoji for note reactions
This commit is contained in:
parent
7b291fa142
commit
58238f03f0
2 changed files with 1 additions and 15 deletions
|
@ -1,15 +1,6 @@
|
|||
@using Iceshrimp.Shared.Schemas.Web
|
||||
<button @onclick="React" class="reaction @(Reaction.Reacted ? "reacted" : "")" title="@Reaction.Name">
|
||||
<span class="icon">
|
||||
@if (Reaction.Url == null)
|
||||
{
|
||||
@Reaction.Name
|
||||
}
|
||||
@if (Reaction.Url != null)
|
||||
{
|
||||
<img class="custom-reaction" src="@Reaction.Url" alt="@Reaction.Name"/>
|
||||
}
|
||||
</span>
|
||||
<InlineEmoji Name="@Reaction.Name" Url="@Reaction.Url" Wide="true"/>
|
||||
<span class="count">
|
||||
@Reaction.Count
|
||||
</span>
|
||||
|
|
|
@ -21,9 +21,4 @@
|
|||
height: 1em;
|
||||
width: auto;
|
||||
vertical-align: -0.1em;
|
||||
}
|
||||
|
||||
.icon {
|
||||
font-size: 1.5em;
|
||||
vertical-align: middle;
|
||||
}
|
Loading…
Add table
Reference in a new issue