[frontend] Move follows you badge next to identifier
This commit is contained in:
parent
b5ced00a73
commit
e0d63d9a6b
4 changed files with 13 additions and 4 deletions
|
@ -5,10 +5,6 @@
|
||||||
@inject IStringLocalizer<Localization> Loc;
|
@inject IStringLocalizer<Localization> Loc;
|
||||||
<div class="profile-info">
|
<div class="profile-info">
|
||||||
<div class="badges">
|
<div class="badges">
|
||||||
@if (UserProfile.Relations.HasFlag(Relations.FollowedBy))
|
|
||||||
{
|
|
||||||
<span class="badge">@Loc["Follows you"]</span>
|
|
||||||
}
|
|
||||||
@switch (UserProfile.Role)
|
@switch (UserProfile.Role)
|
||||||
{
|
{
|
||||||
case Role.Moderator:
|
case Role.Moderator:
|
||||||
|
|
|
@ -52,6 +52,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.badge {
|
.badge {
|
||||||
|
display: inline-block;
|
||||||
padding: 0 0.5rem;
|
padding: 0 0.5rem;
|
||||||
background-color: var(--highlight-color);
|
background-color: var(--highlight-color);
|
||||||
border-radius: 0.5rem;
|
border-radius: 0.5rem;
|
||||||
|
|
|
@ -34,6 +34,10 @@
|
||||||
var host = $"@{UserResponse.Host}";
|
var host = $"@{UserResponse.Host}";
|
||||||
@host
|
@host
|
||||||
}
|
}
|
||||||
|
@if (Profile != null && Profile.Relations.HasFlag(Relations.FollowedBy))
|
||||||
|
{
|
||||||
|
<span class="follows-badge">Follows you</span>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -27,6 +27,14 @@
|
||||||
font-size: 1rem;
|
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 {
|
.profile-card {
|
||||||
margin: auto;
|
margin: auto;
|
||||||
margin-top: 1rem;
|
margin-top: 1rem;
|
||||||
|
|
Loading…
Add table
Reference in a new issue