Issue #1996💬 AnsweredOpened May 2, 2019by prosenjit-manna0 reactions

Mobile first: Media query ordering issue

Quick answerby prosenjit-manna

See the changes here https://github.com/itobuztech/grapesjs/commit/3aa3b2dc7611d23e51eac524404df5b1a5814c74

Read full answer below ↓

Question

Are you using the latest release (older versions are NOT supported)?0.14.61Are you facing the bug with your local copy of GrapesJS or with the current demo?I am facing the issue with both local and 'https://unpkg.com/grapesjs' The issue is mobile first media query ordering issue. With the current version media query ordering status is What is the expected behavior? I tried to fix the sorting in the correct order. ``` sortMediaObject: function sortMediaObject() { ... if (a.key.includes('min-width') && b.key.includes('min-width')) { return this4.getQueryLength(a.key) - this4.getQueryLength(b.ke...

Answers (3)

artfMay 11, 2019

Seems legit. I'll add it in the next release

Palash-MandalJuly 13, 2022

Hello @artf @prosenjit-manna , Can you please help me that the feature is requested by @prosenjit-manna is implemented in the latest /*! grapesjs - 0.19.4 */ version ???

I have faced issues while mobile first approach CSS ordering is randomized.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.