From 7c77ff3b23e252c5a1a27d14bd630a615ff7aa9a Mon Sep 17 00:00:00 2001 From: KKlochko Date: Thu, 24 Apr 2025 22:04:28 +0300 Subject: [PATCH] Update the header style for mobile devices for Show LiveViews. --- lib/decentralised_book_index_web/live/author_live/show.ex | 2 +- lib/decentralised_book_index_web/live/book_live/show.ex | 2 +- lib/decentralised_book_index_web/live/dbi_server_live/show.ex | 2 +- lib/decentralised_book_index_web/live/publisher_live/show.ex | 2 +- lib/decentralised_book_index_web/live/user_live/show.ex | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/decentralised_book_index_web/live/author_live/show.ex b/lib/decentralised_book_index_web/live/author_live/show.ex index 5244bdb..ea4d5f5 100644 --- a/lib/decentralised_book_index_web/live/author_live/show.ex +++ b/lib/decentralised_book_index_web/live/author_live/show.ex @@ -6,7 +6,7 @@ defmodule DecentralisedBookIndexWeb.AuthorLive.Show do @impl true def render(assigns) do ~H""" - <.header> + <.header class="flex-col lg:flex-row"> {@author.name} <:actions> diff --git a/lib/decentralised_book_index_web/live/book_live/show.ex b/lib/decentralised_book_index_web/live/book_live/show.ex index e06fc60..f9bfbd8 100644 --- a/lib/decentralised_book_index_web/live/book_live/show.ex +++ b/lib/decentralised_book_index_web/live/book_live/show.ex @@ -7,7 +7,7 @@ defmodule DecentralisedBookIndexWeb.BookLive.Show do @impl true def render(assigns) do ~H""" - <.header> + <.header class="flex-col lg:flex-row"> {@book.title} <:subtitle> <.authors book={@book} /> diff --git a/lib/decentralised_book_index_web/live/dbi_server_live/show.ex b/lib/decentralised_book_index_web/live/dbi_server_live/show.ex index b98b376..39c161f 100644 --- a/lib/decentralised_book_index_web/live/dbi_server_live/show.ex +++ b/lib/decentralised_book_index_web/live/dbi_server_live/show.ex @@ -4,7 +4,7 @@ defmodule DecentralisedBookIndexWeb.DbiServerLive.Show do @impl true def render(assigns) do ~H""" - <.header> + <.header class="flex-col lg:flex-row"> {@dbi_server.name} <:actions> diff --git a/lib/decentralised_book_index_web/live/publisher_live/show.ex b/lib/decentralised_book_index_web/live/publisher_live/show.ex index 6ff08d4..47e3f55 100644 --- a/lib/decentralised_book_index_web/live/publisher_live/show.ex +++ b/lib/decentralised_book_index_web/live/publisher_live/show.ex @@ -4,9 +4,9 @@ defmodule DecentralisedBookIndexWeb.PublisherLive.Show do @impl true def render(assigns) do ~H""" - <.header> Publisher {@publisher.id} <:subtitle>This is a publisher record from your database. + <.header class="flex-col lg:flex-row"> <:actions> <.link patch={~p"/publishers/#{@publisher}/edit"} phx-click={JS.push_focus()}> diff --git a/lib/decentralised_book_index_web/live/user_live/show.ex b/lib/decentralised_book_index_web/live/user_live/show.ex index 2e8d3c9..f32686a 100644 --- a/lib/decentralised_book_index_web/live/user_live/show.ex +++ b/lib/decentralised_book_index_web/live/user_live/show.ex @@ -4,7 +4,7 @@ defmodule DecentralisedBookIndexWeb.UserLive.Show do @impl true def render(assigns) do ~H""" - <.header> + <.header class="flex-col lg:flex-row"> {@user.email} <:actions>