Skip to content

Commit a079dec

Browse files
committed
Allow setting <main> class
1 parent 1adf5de commit a079dec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/components_guide_web/templates/layout/app.html.heex

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<main>
1+
<main class={assigns[:main_class] || ""}>
22
<p class="alert alert-info" role="alert"><%= Phoenix.Flash.get(@flash, :info) %></p>
33
<p class="alert alert-danger" role="alert"><%= Phoenix.Flash.get(@flash, :error) %></p>
44
<%= @inner_content %>

0 commit comments

Comments
 (0)