We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<body>
What you were expecting:
I expect there are no extra margin when following the tutorial
What happened instead:
There are some margins after completing steps of https://marmelab.com/react-admin/Tutorial.html#mapping-api-endpoints-with-resources
Steps to reproduce:
Create new vite project and follow tutorial till https://marmelab.com/react-admin/Tutorial.html#mapping-api-endpoints-with-resources
Related code:
https://github.com/vitejs/vite/blob/main/packages/create-vite/template-react-ts/src/index.css#L28
Other information:
react-admin/docs/Tutorial.md
Line 83 in 202274e
We shall preserve part of this index.css file
Environment
The text was updated successfully, but these errors were encountered:
I think you are right. The simple project has a style set of body { margin: 0 } in its index.html file.
body { margin: 0 }
We have to fix the docs.
To fix that, add the following to your project's index.html file:
index.html
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <link rel="icon" type="image/svg+xml" href="/vite.svg" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Vite + React + TS</title> + <style> + body { + margin: 0; + } + </style> </head> </head> <body> <div id="root"></div> <script type="module" src="/src/main.tsx"></script> </body> </html>
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
What you were expecting:
I expect there are no extra margin when following the tutorial
What happened instead:
There are some margins after completing steps of https://marmelab.com/react-admin/Tutorial.html#mapping-api-endpoints-with-resources
Steps to reproduce:
Create new vite project and follow tutorial till https://marmelab.com/react-admin/Tutorial.html#mapping-api-endpoints-with-resources
Related code:
https://github.com/vitejs/vite/blob/main/packages/create-vite/template-react-ts/src/index.css#L28
Other information:
react-admin/docs/Tutorial.md
Line 83 in 202274e
We shall preserve part of this index.css file
Environment
The text was updated successfully, but these errors were encountered: