I wanted to have an option to display different images on mobile devices #11620
mxvsh
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So, I am trying to build a landing page using PayloadCMS, and in our organization's design we have different image for smaller screens. I couldn't find any option to set images for smaller screens in PayloadCMS. I tried adding the following in media collection, and it worked, I could see the option when I try to upload the image, but I think the converter doesn't support that and I found that it is using the default converter from https://github.com/payloadcms/payload/blob/ac1e3cf69e61b389907631af280ac7f69093e1ee/packages/richtext-lexical/src/features/converters/jsx/converter/converters/upload.tsx.
What do you think is the best possible option? Should I copy and edit the default converter to support my requirement?
Beta Was this translation helpful? Give feedback.
All reactions