2.10.0 changed layout in build, but not dev #14662
-
For some reason, updating to 2.10.0 changes the breakpoint behaviour in my built PWA but NOT in my local dev testing (SPA). I have a component that changes number of columns with the width of the window, and this shows two cols in quasar dev server 2.9.2 and 2.10.0 equally, as well as PWA builds for 2.9.2. But builds in 2.10.0 only show a single col at the same width. With zero code changes on my end. Reverting back to 2.9.2 fixes the problem. Can anyone shed light on why this would be? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 5 replies
-
This is definitely due to something in your code, so without a reproduction there isn't much help that anyone could provide. |
Beta Was this translation helpful? Give feedback.
-
The only change related to size between the 2 releases is about the time QResizeObserver starts for QLayout. But if your components use the width of the window it should not matter. |
Beta Was this translation helpful? Give feedback.
-
Well I found what is happening, but I don't know why or how to fix it. For whatever reason, my css styles are being interpreted and built DIFFERENTLY in 2.10.0 than before. An entire block that defines the breakpoint |
Beta Was this translation helpful? Give feedback.
-
And after attempts at trying to guess what new logic is being employed with respect to my css file, I have tried the following, none of which solved the problem:
So far, nothing works. Essential css rules are left out of the build in 2.10.0 that are there in 2.9.2. I guess this is another bug to report, but I would at least like to pinpoint what the new quasar code is doing differently with some precision. |
Beta Was this translation helpful? Give feedback.
-
After painstakingly testing each css rule to see what was present and missing in the variety of css files created by the build process, I need to revise the above. My
On the pages being loaded, I can't find in the dev tools any reference at all to these rules for some reason. But removing the second of these blocks from the css file fixes my layout. I am not directly using |
Beta Was this translation helpful? Give feedback.
-
side note I wasn't completely wrong about my |
Beta Was this translation helpful? Give feedback.
-
JFC finally I have a solution! It seems that from version 2.10.0, the build process will produce errors if there is more than one media block with the same declaration. For example, if I have two declarations (with different rules) for |
Beta Was this translation helpful? Give feedback.
JFC finally I have a solution! It seems that from version 2.10.0, the build process will produce errors if there is more than one media block with the same declaration. For example, if I have two declarations (with different rules) for
@media (min-width: 850px) {
for example, it messes up the build and my css is not working properly. Combining those differing rules under single declarations seems to fix the problem.