When implementing my Magento 2 theme, I encountered an unusual bug while using Bootstrap 4. If I adjust the device width to 575, certain elements on the page inexplicably expand to almost 20 million pixels in width.
Interestingly, this issue only arises in certain browsers as it works perfectly fine in others. I even tested it on the mobile Firefox browser on my Android device with the same result.
Breakpoints:
xxs: 0,
xs: 450px,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px,
xxl: 1500px
UPDATE: I recently introduced a new breakpoint at 450px. For a better experience, try a width below 450px.
https://i.sstatic.net/ReZnr.gif
UPDATE:
The issue seems to originate from the <div>
with classes column main
.
By applying max-width: 100%
to this element, the display looks somewhat improved. However, I am still puzzled by the root cause of this behavior.