diff --git a/Iceshrimp.Backend/Pages/User.cshtml b/Iceshrimp.Backend/Pages/User.cshtml index 0a81fa0a..c6e3bdd5 100644 --- a/Iceshrimp.Backend/Pages/User.cshtml +++ b/Iceshrimp.Backend/Pages/User.cshtml @@ -32,7 +32,7 @@ else
@(Model.User.DisplayName ?? Model.User.Username)
- @@@Model.User.Acct + @@@Model.User.Username@@@Model.User.Host
@Html.Raw(Model.Bio ?? "This user hasn't added a bio yet.") diff --git a/Iceshrimp.Backend/Pages/User.cshtml.cs b/Iceshrimp.Backend/Pages/User.cshtml.cs index 0e4cc787..1a043ec8 100644 --- a/Iceshrimp.Backend/Pages/User.cshtml.cs +++ b/Iceshrimp.Backend/Pages/User.cshtml.cs @@ -65,6 +65,9 @@ public class UserModel( if (User is { AvatarUrl: null } || (User is not null && !ShowMedia)) User.AvatarUrl = User.GetIdenticonUrl(instance.Value); + if (User is { Host: null }) + User.Host = instance.Value.AccountDomain; + return Page(); } } \ No newline at end of file diff --git a/Iceshrimp.Backend/Pages/User.cshtml.css b/Iceshrimp.Backend/Pages/User.cshtml.css index 60e82c47..13a3620f 100644 --- a/Iceshrimp.Backend/Pages/User.cshtml.css +++ b/Iceshrimp.Backend/Pages/User.cshtml.css @@ -41,4 +41,8 @@ grid-column: 2/-1; grid-row: 2; padding-left: 10px; +} + +.host { + color: var(--text-dim); } \ No newline at end of file diff --git a/Iceshrimp.Backend/wwwroot/css/default.css b/Iceshrimp.Backend/wwwroot/css/default.css index 32e24710..3848bc7b 100644 --- a/Iceshrimp.Backend/wwwroot/css/default.css +++ b/Iceshrimp.Backend/wwwroot/css/default.css @@ -10,6 +10,7 @@ --text-main: #dbdbdb; --text-bright: #fff; --text-muted: #a9b1ba; + --text-dim: #9aa2aa; --links: #41adff; --focus: #0096bfab; --border: #526980;