[frontend] wip renote rendering
This commit is contained in:
parent
1a23d9a03e
commit
fbac96166e
2 changed files with 36 additions and 3 deletions
|
@ -1,9 +1,34 @@
|
|||
@using Iceshrimp.Shared.Schemas
|
||||
@if (NoteResponse.Renote != null)
|
||||
{
|
||||
<div class="renote">
|
||||
<div class="renote-info">
|
||||
<span class="user">
|
||||
Boosted by
|
||||
@if (NoteResponse.User.DisplayName != null)
|
||||
{
|
||||
@NoteResponse.User.DisplayName
|
||||
}
|
||||
else
|
||||
{
|
||||
@NoteResponse.User.Username
|
||||
}
|
||||
</span>
|
||||
<span class="metadata">
|
||||
<NoteMetadata Visibility="NoteResponse.Visibility" InstanceName="@null" CreatedAt="DateTime.Parse(NoteResponse.CreatedAt)"/>
|
||||
</span>
|
||||
</div>
|
||||
<NoteComponent Note="NoteResponse.Renote" Quote="NoteResponse.Quote" Indented="Indented"/>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<NoteComponent Note="NoteResponse" Quote="NoteResponse.Quote" Indented="Indented"/>
|
||||
}
|
||||
|
||||
<NoteComponent Note="NoteResponse" Quote="NoteResponse.Quote" Indented="Indented"></NoteComponent>
|
||||
|
||||
@code {
|
||||
[Parameter][EditorRequired] public required NoteResponse NoteResponse { get; set; }
|
||||
[Parameter] public bool Indented { get; set; }
|
||||
[Parameter] [EditorRequired] public required NoteResponse NoteResponse { get; set; }
|
||||
[Parameter] public bool Indented { get; set; }
|
||||
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
.renote-info {
|
||||
display: flex;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.metadata {
|
||||
margin-left: auto;
|
||||
}
|
Loading…
Add table
Reference in a new issue