[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
|
@using Iceshrimp.Shared.Schemas.Web
|
||||||
<button @onclick="React" class="reaction @(Reaction.Reacted ? "reacted" : "")" title="@Reaction.Name">
|
<button @onclick="React" class="reaction @(Reaction.Reacted ? "reacted" : "")" title="@Reaction.Name">
|
||||||
<span class="icon">
|
<InlineEmoji Name="@Reaction.Name" Url="@Reaction.Url" Wide="true"/>
|
||||||
@if (Reaction.Url == null)
|
|
||||||
{
|
|
||||||
@Reaction.Name
|
|
||||||
}
|
|
||||||
@if (Reaction.Url != null)
|
|
||||||
{
|
|
||||||
<img class="custom-reaction" src="@Reaction.Url" alt="@Reaction.Name"/>
|
|
||||||
}
|
|
||||||
</span>
|
|
||||||
<span class="count">
|
<span class="count">
|
||||||
@Reaction.Count
|
@Reaction.Count
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -22,8 +22,3 @@
|
||||||
width: auto;
|
width: auto;
|
||||||
vertical-align: -0.1em;
|
vertical-align: -0.1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.icon {
|
|
||||||
font-size: 1.5em;
|
|
||||||
vertical-align: middle;
|
|
||||||
}
|
|
Loading…
Add table
Reference in a new issue