[frontend] Populate top-bar on single note view

This commit is contained in:
Lilian 2024-09-06 19:01:22 +02:00
parent a0a94d3a66
commit e6f95b9ec4
No known key found for this signature in database

View file

@ -7,6 +7,8 @@
@using Iceshrimp.Frontend.Localization @using Iceshrimp.Frontend.Localization
@using Iceshrimp.Shared.Schemas.Web @using Iceshrimp.Shared.Schemas.Web
@using Microsoft.Extensions.Localization @using Microsoft.Extensions.Localization
@using Microsoft.AspNetCore.Components.Sections
@using Iceshrimp.Assets.PhosphorIcons
@inject ApiService ApiService @inject ApiService ApiService
@inject IJSRuntime Js @inject IJSRuntime Js
@inject MessageService MessageService @inject MessageService MessageService
@ -19,6 +21,10 @@
@if (_componentState == LoadState.Init) @if (_componentState == LoadState.Init)
{ {
<SectionContent SectionName="top-bar">
<Icon Name="Icons.Signpost"></Icon>
@Loc["Post by {0}", (RootNote?.User.DisplayName ?? RootNote?.User.Username) ?? string.Empty]
</SectionContent>
<div @ref="Scroller" class="scroller"> <div @ref="Scroller" class="scroller">
<div class="wrapper"> <div class="wrapper">
<div class="container"> <div class="container">