[frontend/components] Add follows you badge to profile info
This commit is contained in:
parent
60ed8d3c3c
commit
1c587584bc
2 changed files with 26 additions and 1 deletions
|
@ -4,6 +4,12 @@
|
||||||
@using Iceshrimp.Assets.PhosphorIcons
|
@using Iceshrimp.Assets.PhosphorIcons
|
||||||
@inject IStringLocalizer<Localization> Loc;
|
@inject IStringLocalizer<Localization> Loc;
|
||||||
<div class="profile-info">
|
<div class="profile-info">
|
||||||
|
<div class="badges">
|
||||||
|
@if (UserProfile.Relations.HasFlag(Relations.FollowedBy))
|
||||||
|
{
|
||||||
|
<span class="badge">@Loc["Follows you"]</span>
|
||||||
|
}
|
||||||
|
</div>
|
||||||
@if (UserProfile.Bio != null)
|
@if (UserProfile.Bio != null)
|
||||||
{
|
{
|
||||||
<div class="bio">
|
<div class="bio">
|
||||||
|
|
|
@ -44,6 +44,25 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.badges {
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
gap: 0.5rem;
|
||||||
|
margin: 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.badge {
|
||||||
|
padding: 0 0.5rem;
|
||||||
|
background-color: var(--highlight-color);
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
::deep {
|
||||||
|
.badge .ph {
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 640px) {
|
@media (max-width: 640px) {
|
||||||
::deep .field {
|
::deep .field {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
Loading…
Add table
Reference in a new issue