When using inline image via markdown and switching to markdown preview, the message areas remains the same size irrespective of the image size, causing the image to appear in a narrow slit with scrollbars.

for example. Don't send the message.Also note that this doesn't happen with, for example, a list.
The message box should expand, just like it does with, for example, with a list, so that image preview can be easily viewed.
Message box's size remains unchanged, making it difficult to view a large inline image.
See attached screengrab -
Thank you @harshilsharma63, opened a ticket here: https://mattermost.atlassian.net/browse/MM-15273.
Thanks @amyblais!
Closing this as the bug has been fixed for upcoming v5.12 release,