-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't add main element to application.html.erb #139
Comments
@shafy sure give it a try 👍🏼 . |
I see. My point is that if you add this gem to an existing project, you probalby already have your HTML set up and wouldn't expect the installer to mess with it. It should be fine when you start a new Rails project with |
You are not missing anything. I agree that it is a bit inconvenient that you have to remove the wrapper in the main layout, if you are able to keep the same scaffolding UI look and feel without the need to the wrapper go for it 🙏 |
Ok thanks for clarifying @dixpac - I'll have a look and report back :-) |
When installing Tailwind it adds a
main
element like this<main class="container mx-auto mt-28 px-5 flex">
toapplication.html.erb
. While this might be fine with a newly created apps, it's annoying for existing apps since it messes with your existing layout.I'd either remove this completely or only add it if the
<body>
ofapplication.html.erb
looks like a default Rails app.I'm happy to look into this.
The text was updated successfully, but these errors were encountered: