-
Notifications
You must be signed in to change notification settings - Fork 226
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
Different styles for Desktop and Mobile. #315
Comments
I'm also very interested in this. What I'm looking to be able to do is hide elements on the mobile or desktop. The example might be, on desktop show an image but hide on mobile, or show a link to a mobile app in a mobile email client but hide that on a desktop client. |
Hey if you need that i think you can implement some kind of button when click will add this media query and in the block you can add Here is the original link mjmlio/mjml#770 (comment) And the code that will work for mjml version > 3
|
Thanks for this. I'm new to GrapeJS so hopefully my follow up questions can be just directed to documentation (that I couldn't find).
My next step if I can get those two items figured out is figuring out how to make a custom button instead of raw "css-class" that was an option of "show mobile/show desktop/show all" Thanks! |
Yeah We Can do this but the issue is once you did this it will reflect in the canvas incase if you hidden some components in the desktop you cant see that component again and also you cant set mediaQuery for mobile once hidden you need to revert back things and need to work |
@rogueturnip were you able to figure out the 2nd point? |
At the moment responsive styles are not supported and what @lechuhuuha suggested is the right path to follow to implement it by yourself. |
I need to give different styles for Desktop and Mobile.
I also referred to the link below -
GrapesJS/grapesjs#3056 (comment)
but the responsive design feature is only applicable to the webpage plugin and not to the MJML plugin.
Any idea how to achieve this or is this a feature that needs to be added?
Please help!
The text was updated successfully, but these errors were encountered: