Update the header style for mobile devices for Show LiveViews.
This commit is contained in:
@@ -6,7 +6,7 @@ defmodule DecentralisedBookIndexWeb.AuthorLive.Show do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<.header>
|
<.header class="flex-col lg:flex-row">
|
||||||
{@author.name}
|
{@author.name}
|
||||||
|
|
||||||
<:actions>
|
<:actions>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ defmodule DecentralisedBookIndexWeb.BookLive.Show do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<.header>
|
<.header class="flex-col lg:flex-row">
|
||||||
{@book.title}
|
{@book.title}
|
||||||
<:subtitle>
|
<:subtitle>
|
||||||
<.authors book={@book} />
|
<.authors book={@book} />
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ defmodule DecentralisedBookIndexWeb.DbiServerLive.Show do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<.header>
|
<.header class="flex-col lg:flex-row">
|
||||||
{@dbi_server.name}
|
{@dbi_server.name}
|
||||||
|
|
||||||
<:actions>
|
<:actions>
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ defmodule DecentralisedBookIndexWeb.PublisherLive.Show do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<.header>
|
|
||||||
Publisher {@publisher.id}
|
Publisher {@publisher.id}
|
||||||
<:subtitle>This is a publisher record from your database.</:subtitle>
|
<:subtitle>This is a publisher record from your database.</:subtitle>
|
||||||
|
<.header class="flex-col lg:flex-row">
|
||||||
|
|
||||||
<:actions>
|
<:actions>
|
||||||
<.link patch={~p"/publishers/#{@publisher}/edit"} phx-click={JS.push_focus()}>
|
<.link patch={~p"/publishers/#{@publisher}/edit"} phx-click={JS.push_focus()}>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ defmodule DecentralisedBookIndexWeb.UserLive.Show do
|
|||||||
@impl true
|
@impl true
|
||||||
def render(assigns) do
|
def render(assigns) do
|
||||||
~H"""
|
~H"""
|
||||||
<.header>
|
<.header class="flex-col lg:flex-row">
|
||||||
{@user.email}
|
{@user.email}
|
||||||
|
|
||||||
<:actions>
|
<:actions>
|
||||||
|
|||||||
Reference in New Issue
Block a user