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>
|
||||
|
@ -5,8 +5,8 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
||||
<meta name="csrf-token" content={csrf_token_value()}>
|
||||
<%= live_title_tag assigns[:page_title] || "SomethingErlang",
|
||||
suffix: " · Phoenix Framework" %>
|
||||
<%= live_title_tag assigns[:page_title] || "This awesome page",
|
||||
suffix: " · Something Erlang" %>
|
||||
<link phx-track-static rel="stylesheet"
|
||||
href={Routes.static_path(@conn, "/assets/app.css")}/>
|
||||
<script defer phx-track-static type="text/javascript"
|
||||
|
Reference in New Issue
Block a user