django-cms / djangocms-bootstrap4

django CMS Bootstrap 4 is a plugin bundle for django CMS providing several components from the popular Bootstrap 4 framework.
https://www.django-cms.org/
Other
82 stars 58 forks source link

Offset-0 not rendered #81

Closed fsbraun closed 5 years ago

fsbraun commented 5 years ago

It seems there is a small bug in the current implementation of the column plugin:

If I select an offset value of 0 no class "offset-xx-0" is added to the column. This is important, e.g., if I have an offset for smaller breakpoints but need no offset for a larger breakpoint.

Example Offsets: 2 for xs, 0 for md should generate "offset-2 offset-md-0" but generates "offset-2" instead. It seems that no offset and 0 offset are treated the same way.