django-bootstrap4
django-bootstrap4 copied to clipboard
addon_before misaligned for bootstrap_field
If I have the following in my template:
{% bootstrap_field form.shortlink_suffix layout='horizontal' addon_before='some text' %}
It renders the addon text at the top, out of alignment with the rest of the field. Inspecting the output shows
the span class is "input-group-addon". Setting the addon_before_class to "input-group-text" fixes the alignment, but now the text is surrounded by a grey box. Possibly the default class of input-group-addon is incorrect?
Hi @askvictor, if this is still relevant, could you add a screenshot and/or example?