Skip to content

Commit

Permalink
allow tags immediately after <body> (#2413)
Browse files Browse the repository at this point in the history
  • Loading branch information
taylordowns2000 authored Aug 21, 2024
1 parent ac7e6ab commit 1927154
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/lightning_web/components/layouts.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ defmodule LightningWeb.Layouts do
embed_templates "layouts/*"

slot :header_tags
slot :body_tags
def root(assigns)
end
1 change: 1 addition & 0 deletions lib/lightning_web/components/layouts/root.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<%= render_slot(@header_tags) %>
</head>
<body class="h-full">
<%= render_slot(@body_tags) %>
<div class="min-h-full">
<%= @inner_content %>
</div>
Expand Down

0 comments on commit 1927154

Please sign in to comment.