-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
Thanks for phoenix_playground
, I find it very entertaining & useful at the moment!
This issue is a bit of a brain dump / raw user feedback, so bear with me!
I'm trying it on a MVP, and I need to customise the layout (add some custom CSS via Tailwind & a couple of similar stuff).
I made a couple of attempts.
The relevant code is at the moment there:
- https://github.com/phoenix-playground/phoenix_playground/blob/main/lib/phoenix_playground/layouts.ex
- https://github.com/phoenix-playground/phoenix_playground/blob/main/lib/phoenix_playground/routers.ex
I cannot see how to customise it without a fair amount of refactoring, so I looked for another solution.
layout
can be set at mount time:
https://hexdocs.pm/phoenix_live_view/live-layouts.html#application-layout
But this is apparently only for layout
, so it leaves no room to customise root_layout
if I read correctly.
@wojtekmach do want to support customisable layouts ultimately?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels