Skip to content

Commit

Permalink
Update bootstrap_5_layout.html.twig
Browse files Browse the repository at this point in the history
Remove empty spaces between choices.
  • Loading branch information
simondaigre committed Oct 11, 2022
1 parent 94c3b38 commit 60db1cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Resources/views/Form/bootstrap_5_layout.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,10 @@
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%}
{%- set row_class = 'form-check' -%}
{%- if 'checkbox-inline' in parent_label_class %}
{% set row_class = row_class ~ ' form-check-inline' %}
{%- set row_class = row_class ~ ' form-check-inline' -%}
{% endif -%}
{%- if 'checkbox-switch' in parent_label_class %}
{% set row_class = row_class ~ ' form-switch' %}
{%- set row_class = row_class ~ ' form-switch' -%}
{% endif -%}
<div class="{{ row_class }}">
{{- form_label(form, null, { widget: parent() }) -}}
Expand Down

0 comments on commit 60db1cc

Please sign in to comment.