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:
Resizing using rich text editing doesn't work as expected because the formatting gets messed up:
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
leads to...
Steps to reproduce
- Create or go to an issue
- In the description of the issue or in a comment, insert a 2x2 table
- 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)
- Adjust the image sizes using HTML or rich text editing (drag)
Example Project
What is the current bug behavior?
- Images don't resize properly in rich text editing mode
- When adjust image sizes using HTML, the columns don't resize according to the new image widths
What is the expected correct behavior?
- Images can be resized in rich text editing mode without any formatting problems
- 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



