feat: Improve profile styles

This commit is contained in:
Ro 2024-10-26 12:32:31 -05:00
parent 44489ae211
commit f52402767b
Signed by: ro
GPG key ID: 5B5AD5A568CDABF9
2 changed files with 5 additions and 3 deletions

View file

@ -14,6 +14,8 @@ defmodule PostlandWeb.ActorJSON do
"id" => url(~p"/actor"),
"type" => "Person",
"preferredUsername" => user.username,
"name" => user.name,
"summary" => user.summary,
"inbox" => url(~p"/inbox"),
"outbox" => url(~p"/outbox"),
"publicKey" => %{

View file

@ -11,11 +11,11 @@ defmodule PostlandWeb.ProfileLive do
<div class="flex flex-col bg-white rounded-lg shadow container">
<.form for={@form} id="profile-form" phx-change="validate" phx-submit="submit">
<div class="p-4">
<h2 :if={!@editing} class="font-bold"><%= @account.name %></h2>
<.input :if={@editing} field={@form[:name]} label="Display Name" />
<span :if={!@editing} class="text-gray-500">
<h2 :if={!@editing} class="font-bold inline-block"><%= @account.name %></h2>
<span :if={!@editing} class="ml-2 text-gray-500">
@<%= @account.username %>@<%= @host %>
</span>
<.input :if={@editing} field={@form[:name]} label="Display Name" />
</div>
<hr />
<div class="p-4">