mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Remove indent of product description on iPhone
Our HTML formatting plugin for product descriptions adds whitespace to the beginning of the description text. While that shouldn't be rendered in HTML, Safari on iPhone was showing a whitespace and therefore moving the text a bit to the right.
This commit is contained in:
@@ -18,7 +18,7 @@ class Api::ProductSerializer < ActiveModel::Serializer
|
||||
|
||||
# return an unformatted descripton
|
||||
def description
|
||||
strip_tags object.description
|
||||
strip_tags object.description&.strip
|
||||
end
|
||||
|
||||
# return a sanitized html description
|
||||
|
||||
Reference in New Issue
Block a user