Repository navigation
[MM-12898] Allow in-line markdown images to open preview window - #3639
Conversation
esethna
left a comment
There was a problem hiding this comment.
Thanks @abdusabri! Looking really good just one note,
- We should try to follow the UI that we use for attachments in terms of the hover state:
FYI I filed a related bug ticket that I found while testing but it's not related to this PR so won't block merging this: https://mattermost.atlassian.net/browse/MM-18508
|
Oh, thanks @esethna for catching that! You might notice that the outer shadow has slightly less depth at the bottom compared to attached images, and that's is because the inline nature of markdown images has naturally less space/margins. When I tried the default (similar to attachments), it was a bit too much, specially with small icons like Github's favicon, in some other trials the ending was cut a little bit and didn't look natural. Hopefully that's Ok and I didn't miss something 🙂 |
|
@saturninoabril I will push a single commit with both of your comments implemented after #3647 is merged |
esethna
left a comment
There was a problem hiding this comment.
Looks great, thanks @abdusabri! Great work on this, nice work finding and solving for the corner cases. Definitely have a browse at all the other tickets we have available if something catches your eye: https://github.com/mattermost/mattermost-server/issues?q=is%3Aopen+is%3Aissue+label%3A%22Help+Wanted%22
|
@abdusabri fyi, said PR is now merged. |
|
@esethna while updating the tests, I noticed that I'd removed the I would like also to note that attached images don't have an |
Thanks @saturninoabril , didn't know about this case, will fix it. (Getting to know the product 🙈) |
|
@esethna @saturninoabril I've already fixed the styles for RHS case, and updated E2E tests. But i think it is best to wait until the above issue is fixed before finally pushing, agree? Update: I've fixed the issue, and will wrap things up and push the updates later today. The regression issue is a variation of the above issue. A message like |
|
Test server destroyed |
|
Thanks for the feedback @sudheerDev! |
@esethna, in case you missed ☝️ |
* Allow in-line markdown images to open preview window * Update markdown_image E2E tests * Update inline markdown_image hover style * Fix inline MD image RHS styles & broken link issues, update E2E tests * Tweak css border rule, adjust px value in MD image E2E test
…ermost#3639) * Allow in-line markdown images to open preview window * Update markdown_image E2E tests * Update inline markdown_image hover style * Fix inline MD image RHS styles & broken link issues, update E2E tests * Tweak css border rule, adjust px value in MD image E2E test
…ermost#3639) * Allow in-line markdown images to open preview window * Update markdown_image E2E tests * Update inline markdown_image hover style * Fix inline MD image RHS styles & broken link issues, update E2E tests * Tweak css border rule, adjust px value in MD image E2E test
…ermost#3639) * Allow in-line markdown images to open preview window * Update markdown_image E2E tests * Update inline markdown_image hover style * Fix inline MD image RHS styles & broken link issues, update E2E tests * Tweak css border rule, adjust px value in MD image E2E test
* There was a change with inherited classes mattermost#3639 on markdown-inline-img causing this issue * Changing svg place holder to inherit width
* There was a change with inherited classes mattermost#3639 on markdown-inline-img causing this issue * Changing svg place holder to inherit width
* There was a change with inherited classes mattermost#3639 on markdown-inline-img causing this issue * Changing svg place holder to inherit width
* There was a change with inherited classes mattermost#3639 on markdown-inline-img causing this issue * Changing svg place holder to inherit width




Summary
Updates the behavior of in-line markdown images to allow for opening the preview window. There are 3 cases as follows:
Here is a screen capture demonstrating the expected behavior.
Ticket Link
Fixes mattermost/mattermost#9805