-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Safari iOS broken #10135
Comments
I wasn't able to recreate this issue. Could you provide some additional information?
|
18.2 on 15 Pro I have adguard and dark reader, both of which are disabled. What seems to work is if i disable content blockers and then keep refreshing and go through pages it starts working on some point. When loading in the app on homepage it flashes with everything being full width then goes to the screenshot. |
Which iOS version were you on, that you weren't able to recreate this issue in Safari? It's been on-going for me with an older device running iOS 15~ and a newer device running 18~ |
@HarleySalas @Wiz1991 I wasn't able to recreate the alignment issues exactly but encountered some different ones when I deployed the website template. I had a sneaking suspicion that the issue was due to Tailwind and Safari, rather than Payload itself and I believe I found a solution. Find the postcss.config.js file in your root directory. If it looks like this: Rewrite it to look like this: I believe the underlying issue was CSS browser compatibility issues. Autoprefixer prepends browser specific prefixes like "-webkit-". If it was being loaded before Tailwind then those necessary prefixes were not being added. Source: Tailwind Docs - Browser Support Please Let me know if this works! |
…ind compatibility (#10176) <!-- Thank you for the PR! Please go through the checklist below and make sure you've completed all the steps. Please review the [CONTRIBUTING.md](https://github.com/payloadcms/payload/blob/main/CONTRIBUTING.md) document in this repository if you haven't already. The following items will ensure that your PR is handled as smoothly as possible: - PR Title must follow conventional commits format. For example, `feat: my new feature`, `fix(plugin-seo): my fix`. - Minimal description explained as if explained to someone not immediately familiar with the code. - Provide before/after screenshots or code diffs if applicable. - Link any related issues/discussions from GitHub or Discord. - Add review comments if necessary to explain to the reviewer the logic behind a change ### What? ### Why? ### How? Fixes # --> This The plugin order in postcss.config.js was causing UI rendering issues in mobile Safari (#10135). This pull request affects the website template and the vercel website template. Current version: ``` // Website template: /templates/website/postcss.config.js // Vercel website template: /templates/with-vercel-website/postcss.config.js export default { plugins: { autoprefixer: {}, tailwindcss: {}, }, } ``` PostCSS was loading Autoprefixer before Tailwind and the vendor prefixes were not properly being prepended. Fixed version (per [Tailwind docs](https://tailwindcss.com/docs/browser-support)): ``` export default { plugins: { tailwindcss: {}, // this is first autoprefixer: {}, // this is second }, } ```
Describe the Bug.
There is something wrong with the viewport.
Scroll does not work at all
Date picker does not follow theme and size ios zooms in when you focus on input, its impossible to use rhe date picker
Sidebar wont close when you open new page
It seems like the dashboard also relies on some default css, which is different on safari? That or theres a css reset which doesnt work on safari. You cant see how the padding is all wrong in the screenshot.
Sadly i cant provide more info than that as i cant really open dev tools on mobile.
Reproduction Steps
Just open any dashboard on ios.
Environment Info
The text was updated successfully, but these errors were encountered: