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"),
|
"id" => url(~p"/actor"),
|
||||||
"type" => "Person",
|
"type" => "Person",
|
||||||
"preferredUsername" => user.username,
|
"preferredUsername" => user.username,
|
||||||
|
"name" => user.name,
|
||||||
|
"summary" => user.summary,
|
||||||
"inbox" => url(~p"/inbox"),
|
"inbox" => url(~p"/inbox"),
|
||||||
"outbox" => url(~p"/outbox"),
|
"outbox" => url(~p"/outbox"),
|
||||||
"publicKey" => %{
|
"publicKey" => %{
|
||||||
|
|
|
||||||
|
|
@ -11,11 +11,11 @@ defmodule PostlandWeb.ProfileLive do
|
||||||
<div class="flex flex-col bg-white rounded-lg shadow container">
|
<div class="flex flex-col bg-white rounded-lg shadow container">
|
||||||
<.form for={@form} id="profile-form" phx-change="validate" phx-submit="submit">
|
<.form for={@form} id="profile-form" phx-change="validate" phx-submit="submit">
|
||||||
<div class="p-4">
|
<div class="p-4">
|
||||||
<h2 :if={!@editing} class="font-bold"><%= @account.name %></h2>
|
<h2 :if={!@editing} class="font-bold inline-block"><%= @account.name %></h2>
|
||||||
<.input :if={@editing} field={@form[:name]} label="Display Name" />
|
<span :if={!@editing} class="ml-2 text-gray-500">
|
||||||
<span :if={!@editing} class="text-gray-500">
|
|
||||||
@<%= @account.username %>@<%= @host %>
|
@<%= @account.username %>@<%= @host %>
|
||||||
</span>
|
</span>
|
||||||
|
<.input :if={@editing} field={@form[:name]} label="Display Name" />
|
||||||
</div>
|
</div>
|
||||||
<hr />
|
<hr />
|
||||||
<div class="p-4">
|
<div class="p-4">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue