Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
RN: in-line image via markdown is not scaling well #12970
In the mobile app the inline image via markdown is not scaling well; px declaration is broken and svg can not be displayed. It is related to https://mattermost.atlassian.net/browse/MM-14628, which IMHO was closed wrongly.
Steps to reproduce
Mattermost Version: 5.16.1
Enter the following commands.
1: The picture (32x8 px) not scaling properly to the text. It should be small but it is shown with a minimum height.
2: The picture (67x17 px) not scaling properly to the text. It is displayed as it is. It is even in-line (as recommended in https://mattermost.atlassian.net/browse/MM-14628) and not between a text. But regarding to the docu https://docs.mattermost.com/help/messaging/formatting-text.html#in-line-images that is what this tag is meant for?!
3: Same as 2 but with a bigger picture (300x76 px).
4: SVG is not working. Was just a test: https://mattermost.atlassian.net/browse/MM-9746
5: Should be displayed like in 6.
6: Is ignoring the size setting.
Observed behavior (that appears unintentional)
@amyblais I just tested them via mobile connection and there shouldn't be any limitation.
An update on this is that we don’t support rendering svg’s on the mobile app. One of our devs was looking into this at some point and shared that
In the case of setting custom dimensions, we also don't seem to support that on the mobile app but we're confirming this with our devs.
@hmhealey Do you know if we support setting custom dimensions on the mobile app?