I have a metafield, on one of my product page templates, that comprises a list of icons denoting “organic’, 'vegan” etc.
When I deploy the metafield using a custom liquid block on the template, the icons show up as a vertical array and they are a bit too large.
This is the customer liquid code I have used:
{% assign array_of_badges = product.metafields.custom.dietary_creds.value %}
{% if array_of_badges %}
{% for product_badge in array_of_badges %}
{% endfor %}
{% endif %}
Can anyone help me switch the array to horizontal and reduce the size of the icons? Basically, I want it to look like the top row in the attached pic instead of the bottom row

