However, it appears to be displayed correctly in a post. It is just double the size in the smiley drop down. Is there a difference between how those are rendered?This seems like it could be an iOS bug as I cannot reproduce it anywhere else. I suspect it's related to the smilies loading in what starts off as a totally hidden element.
I suspect we'll have to create a reduced test case and send it to Apple.
diff --git a/src/XF/Str/Formatter.php b/src/XF/Str/Formatter.php
index f55bd517f..abc7dd44a 100644
--- a/src/XF/Str/Formatter.php
+++ b/src/XF/Str/Formatter.php
@@ -219,7 +219,7 @@ class Formatter
if (!empty($smilie['image_url_2x']))
{
$url2x = htmlspecialchars($pather ? $pather($smilie['image_url_2x'], 'base') : $smilie['image_url_2x']);
- $srcSet = 'srcset="' . $url2x . ' 2x"';
+ $srcSet = 'srcset="' . $url . ' 1x, ' . $url2x . ' 2x"';
}
return '<img src="' . $url . '" ' . $srcSet . ' class="smilie" alt="' . $smilieText
We use essential cookies to make this site work, and optional cookies to enhance your experience.