Skip to content

Ideas on how to customise the layout? #2

@thbar

Description

@thbar

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:

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions