feat: Improve profile styles
This commit is contained in:
parent
44489ae211
commit
f52402767b
2 changed files with 5 additions and 3 deletions
|
|
@ -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" => %{
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in a new issue