Image resizing issues in markdown tables

Summary

When I upload images into a Markdown table in a GitLab issue comment, they're 2 different sizes:

image.png

Resizing using rich text editing doesn't work as expected because the formatting gets messed up:

rte.gif

When I try editing the image sizes using HTML (to get them to be the same size), I can accomplish this, but the columns don't readjust automatically

image.png

leads to...

image.png

Steps to reproduce

  1. Create or go to an issue
  2. In the description of the issue or in a comment, insert a 2x2 table
  3. In the table, put headers in the first row, and then screenshots in the second row (make sure images are different sizes, which is common when taking portions of UI screenshots)
  4. Adjust the image sizes using HTML or rich text editing (drag)

Example Project

What is the current bug behavior?

  1. Images don't resize properly in rich text editing mode
  2. When adjust image sizes using HTML, the columns don't resize according to the new image widths

What is the expected correct behavior?

  1. Images can be resized in rich text editing mode without any formatting problems
  2. Columns automatically resize based on image size

Relevant logs and/or screenshots

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\`sudo gitlab-rake gitlab:env:info\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\`) (For installations from source run and paste the output of: \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\`sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\`)

Results of GitLab application Check

Expand for output related to the GitLab application check

(For installations with omnibus-gitlab package run and paste the output of: \\\\\\\\\\\\\\\`sudo gitlab-rake gitlab:check SANITIZE=true\\\\\\\\\\\\\\\`) (For installations from source run and paste the output of: \\\\\\\\\\\\\\\`sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true\\\\\\\\\\\\\\\`) (we will only investigate if the tests are passing)

Possible fixes

Edited by Becka Lippert