Open a-fro opened 7 years ago
I realize I'm not giving you a lot of info to go on. One additional clue: when I turn the border off using the inspector, the box model for the smart grid item goes from being 416px wide to 378px. That doesn't make any sense to me. See images:
Another update. Looks like it was due to the box-model. Where do you recommend setting the box-model on a project? Should the smart-grid take this into account? I created a PR for you to see one option for fixing the issue.
Hey Evan. I'm using the smart grid for a new build on PL/D8, outputting teasers as cards. The grid items work great in PL, but when I use them in Drupal, the last item on each row drops down to a new row. It seems like it's related to the 1px border on the items. The width calc looks like the following:
width: calc((33.33333% + 10.66667px) - 32px)
. If I change that tocalc((33.33333% + 8px) - 32px)
, the last item comes back into the row. It also works as expected if I remove the 1px border. Any suggestions?