Classes mismatch while using web preset plugin
Question
Hello Everyone,
I am using website preset plugin however, when I drag column from grapes Demo page the styling is different and in my application the styling is different as follows.Am I missing anything?
**GrapesUI**
* {
box-sizing: border-box;
}
body {
margin: 0;
}
body{
background-image:url(none);
background-repeat:repeat;
background-position:left top;
background-attachment:scroll;
background-size:auto;
}
.row{
display:flex;
justify-content:flex-start;
align-items:stretch;
flex-wrap:nowrap;
padding-top:10px;
padding-right:10px;
padding-bottom:10px;
padding-left:10px;
}
.cell{
min-height:75px;
flex-grow:1;
flex-basis:100%;
}
@media (max-width: 768px){
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
.row{
flex-wrap:wrap;
}
}
@keyframes fadeEffect{
0%{
opacity:0;
}
100%{
opacity:1;
}
0%{
opacity:0;
}
100%{
opacity:1;
}
}
**My webpage**
* {
box-sizing: border-box;
}
body {
margin: 0;
}
*{
box-sizing:border-box;
}
body{
margin-top:0px;
margin-right:0px;
margin-bottom:0px;
margin-left:0px;
}
.now-row{
display:table;
padding-top:10px;
padding-right:10px;
padding-bottom:10px;
padding-left:10px;
width:100%;
}
.now-cell{
width:8%;
display:table-cell;
height:75px;
}
@media (max-width: 768px){
.now-cell{
width:100%;
display:block;
}
.now-cell{
width:100%;
display:block;
}
}
Warm regards
MilapAnswers (3)
@artf Please help if I am missing anything
f = s ? "\n ." + u + " {\n display: flex;\n justify-content: flex-start;\n align-items: stretch;\n flex-wrap: nowrap;\n padding: 10px;\n }\n @media (max-width: 768px) {\n ." + u + " {\n flex-wrap: wrap;\n }\n }" : "\n ." + u + " {\n display: table;\n padding: 10px;\n width: 100%;\n }\n @media (max-width: 768px) {\n ." + o + "cell, ." + o + "cell30, ." + o + "cell70 {\n width: 100%;\n display: block;\n }\n }",
I guess this line from the minified version causes this.Not sure why it is choosing the other case for me.
Warm regards Milap
Issue fixed.
flexGrid : true in the options for basic plugin fixed the issue
Warm regards Milap
Related Questions and Answers
Continue research with similar issue discussions.
Issue #680
DOM/Component buginess when editing Classes/Settings
Encountered this while developing a plugin. I've reproduced it in the official demo via Browserstack on a different OS and browser, so I'm...
Issue #1333
Bug in WebPage Demo
To reproduce: 1) Open https://grapesjs.com/demo.html in incognito mode. 2) Import this code: 3) Clear Canvas 4) Press Import. Result: The c...
Issue #1631
how to display Css in Code viewer in newsletter plugin?
Hi @artf i want to display my css in replace of protectedCss: '* { box-sizing: border-box; } body {margin: 0;}', how can i achieve in newsl...
Issue #1762
image not change while we fetch html using editor.getHtml()
Hello @artf I am using grapes.js for my website-builder tool into my website. While i double click on any image the asset-manager will open...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.