diff --git a/Iceshrimp.Frontend/Components/ProfileInfo.razor b/Iceshrimp.Frontend/Components/ProfileInfo.razor index ac8ea9e3..f2fe789f 100644 --- a/Iceshrimp.Frontend/Components/ProfileInfo.razor +++ b/Iceshrimp.Frontend/Components/ProfileInfo.razor @@ -5,10 +5,6 @@ @inject IStringLocalizer Loc;
- @if (UserProfile.Relations.HasFlag(Relations.FollowedBy)) - { - @Loc["Follows you"] - } @switch (UserProfile.Role) { case Role.Moderator: diff --git a/Iceshrimp.Frontend/Components/ProfileInfo.razor.css b/Iceshrimp.Frontend/Components/ProfileInfo.razor.css index 1eb32130..b03fbc73 100644 --- a/Iceshrimp.Frontend/Components/ProfileInfo.razor.css +++ b/Iceshrimp.Frontend/Components/ProfileInfo.razor.css @@ -52,6 +52,7 @@ } .badge { + display: inline-block; padding: 0 0.5rem; background-color: var(--highlight-color); border-radius: 0.5rem; diff --git a/Iceshrimp.Frontend/Pages/ProfileView.razor b/Iceshrimp.Frontend/Pages/ProfileView.razor index 4773ecd5..be2aea34 100644 --- a/Iceshrimp.Frontend/Pages/ProfileView.razor +++ b/Iceshrimp.Frontend/Pages/ProfileView.razor @@ -34,6 +34,10 @@ var host = $"@{UserResponse.Host}"; @host } + @if (Profile != null && Profile.Relations.HasFlag(Relations.FollowedBy)) + { + Follows you + }
diff --git a/Iceshrimp.Frontend/Pages/ProfileView.razor.css b/Iceshrimp.Frontend/Pages/ProfileView.razor.css index 32c7a5d9..fa95507b 100644 --- a/Iceshrimp.Frontend/Pages/ProfileView.razor.css +++ b/Iceshrimp.Frontend/Pages/ProfileView.razor.css @@ -27,6 +27,14 @@ font-size: 1rem; } +.follows-badge { + display: inline-block; + padding: 0 0.5rem; + background-color: var(--highlight-color); + border-radius: 0.5rem; + margin-left: 0.5rem; +} + .profile-card { margin: auto; margin-top: 1rem;