Skip to content

Commit

Permalink
Merge pull request #5143 from matsuoshi/modify-file-form-style
Browse files Browse the repository at this point in the history
class名指定時の崩れを修正
  • Loading branch information
chihiro-adachi authored Sep 2, 2021
2 parents 8201802 + 07528a6 commit 93eb30e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ file that was distributed with this source code.
{% endblock %}

{%- block file_widget -%}
{%- set attr = attr|merge({class: (attr.class|default('') ~ 'form-control-file')|trim}) -%}
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-control-file')|trim}) -%}
<input type="file" {{ block('widget_attributes') }} {% if value is not empty %}value="{{ value }}" {% endif %}/>
{%- endblock -%}

0 comments on commit 93eb30e

Please sign in to comment.