grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

Issue with responsive design.

Open theSC0RP opened this issue 6 years ago • 2 comments

When I switch to the mobile view, the elements on the screen are just squeezed. (I am using the grapesjs-blocks-basic plugin) In the screenshots below, a have a column with 2 cells. I expect it to be converted to rows in the mobile view
Screenshot (179)


Screenshot (178)
The code for the deviceManager is:

deviceManager: {
      devices: [{
          name: 'Desktop',
          width: '', // default size
        }, {
          name: 'Mobile',
          width: '400px', // this value will be used on canvas width
          widthMedia: '480px', // this value will be used in CSS @media
      }]
},

theSC0RP avatar Oct 22 '20 08:10 theSC0RP

Try using flexGrid

Ju99ernaut avatar Oct 23 '20 09:10 Ju99ernaut

@Ju99ernaut Thank you so much. Using flexGrid solves the issue.

theSC0RP avatar Oct 23 '20 10:10 theSC0RP