mobile display; page title

This commit is contained in:
Rüdiger Diedrich
2022-07-27 21:52:18 +02:00
parent bceae20878
commit e0fd6051e3
3 changed files with 10 additions and 5 deletions

View File

@ -17,6 +17,7 @@ defmodule SomethingErlangWeb.ThreadLive.Show do
thread = Grover.get_thread!(id, page |> String.to_integer())
{:noreply,
socket
|> assign(:page_title, thread.title)
|> assign(:thread, thread)}
end
@ -39,9 +40,9 @@ defmodule SomethingErlangWeb.ThreadLive.Show do
def user(assigns) do
~H"""
<aside class="userinfo bg-base-100 shrink-0 w-[13em]">
<aside class="userinfo bg-base-100 shrink-0 sm:w-[13em]">
<h3 class="mb-4"><%= @info.name %></h3>
<div class="title text-sm pr-4">
<div class="title hidden sm:flex flex-col text-sm pr-4">
<%= raw @info.title %>
</div>
</aside>