mobile display; page title
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user