Skip to content

Commit

Permalink
Make Liveview's root divs transparent for layout purposes. (#6052)
Browse files Browse the repository at this point in the history
  • Loading branch information
derekkraan authored Jan 26, 2025
1 parent 300cfb1 commit cc39fb5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions installer/templates/phx_assets/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,12 @@
@import "tailwindcss/components";
@import "tailwindcss/utilities";

/*
* Make LiveView wrapper divs transparent for layout.
* This makes it possible to use LiveViews as flex children for example.
*/


[data-phx-root-id] { display: contents }

/* This file is for your main application CSS */

0 comments on commit cc39fb5

Please sign in to comment.