File tree Expand file tree Collapse file tree
elixir_console_web/templates/layout Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ defmodule ElixirConsoleWeb do
4343
4444 def live_view do
4545 quote do
46- use Phoenix.LiveView
46+ use Phoenix.LiveView , layout: { ElixirConsoleWeb.LayoutView , "live.html" }
4747
4848 unquote ( view_helpers ( ) )
4949 end
Original file line number Diff line number Diff line change 1+ < main role = "main " class = "w-full h-full " >
2+ < p class = "alert alert-info " role = "alert "
3+ phx-click = "lv:clear-flash "
4+ phx-value-key = "info " > <%= live_flash ( @ flash , :info ) %> </ p >
5+
6+ < p class = "alert alert-danger " role = "alert "
7+ phx-click = "lv:clear-flash "
8+ phx-value-key = "error " > <%= live_flash ( @ flash , :error ) %> </ p >
9+
10+ < div class = "bg-teal-900 w-full h-full rounded overflow-hidden shadow-lg live-view-parent " >
11+ <%= @ inner_content %>
12+ </ div >
13+ </ main >
Original file line number Diff line number Diff line change 3939 </ svg >
4040 </ a >
4141 </ header >
42- < main role = "main " class = "w-full h-full flex-1 overflow-hidden " >
43- < p class = "alert alert-info " role = "alert "
44- phx-click = "lv:clear-flash "
45- phx-value-key = "info " > <%= live_flash ( @ flash , :info ) %> </ p >
46-
47- < p class = "alert alert-danger " role = "alert "
48- phx-click = "lv:clear-flash "
49- phx-value-key = "error " > <%= live_flash ( @ flash , :error ) %> </ p >
50-
51- < div class = "bg-teal-900 w-full h-full rounded overflow-hidden shadow-lg live-view-parent " >
52- <%= @ inner_content %>
53- </ div >
54- </ main >
42+ < div class = "live-view-parent h-full overflow-hidden " >
43+ <%= @ inner_content %>
44+ </ div >
5545 </ body >
5646</ html >
You can’t perform that action at this time.
0 commit comments