Skip to content

Commit

Permalink
Fix country field flags in Safari browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Nov 15, 2023
1 parent ed2cbbc commit 4660474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/views/crud/field/country.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{% if show_flag and not show_name %}
{% for flag_code, country_name in field.formattedValue %}
{% if flag_code is not null %}
<img class="country-flag" alt="{{ country_name }}" title="{{ country_name }}" src="{{ asset('images/flags/' ~ flag_code ~ '.svg', ea.assets.defaultAssetPackageName) }}">
<img class="country-flag" height="17" alt="{{ country_name }}" title="{{ country_name }}" src="{{ asset('images/flags/' ~ flag_code ~ '.svg', ea.assets.defaultAssetPackageName) }}">
{% endif %}
{% endfor %}
{% elseif show_name and not show_flag %}
Expand All @@ -19,7 +19,7 @@
<span>
{%- if show_flag -%}
{%- if flag_code is not null -%}
<img class="country-flag" alt="{{ country_name }}" title="{{ country_name }}" src="{{ asset('images/flags/' ~ flag_code ~ '.svg', ea.assets.defaultAssetPackageName) }}">
<img class="country-flag" height="17" alt="{{ country_name }}" title="{{ country_name }}" src="{{ asset('images/flags/' ~ flag_code ~ '.svg', ea.assets.defaultAssetPackageName) }}">
{%- endif -%}
{%- endif -%}

Expand Down

0 comments on commit 4660474

Please sign in to comment.