modrinth / code

The Modrinth monorepo containing all code which powers Modrinth!
https://modrinth.com
Other
992 stars 185 forks source link

Cannot access Insert button when inserting image files into project descriptions if the image preview goes offscreen #2957

Open flowersinthedaark opened 4 days ago

flowersinthedaark commented 4 days ago

Please confirm the following.

What browsers are you seeing the problem on?

Chrome (including Arc, Brave, Opera, Vivaldi), Other (please specify)

Describe the bug

Browser is Opera GX. When trying to upload an image in a project description the image preview goes beyond the limit of the box it should be in and there is no way to scroll down, leaving you unable to hit the Insert button to actually insert the image into the description.

Steps to reproduce

  1. Create a new project or go into any existing project
  2. Go to writing the description
  3. Hit the button for inserting an image through file upload
  4. Insert an image long enough to go offscreen (My image when I encountered this was 1500 by 1400)
  5. Try to actually insert the image

Expected behavior

The preview box to expand with the image's size, and to be able to scroll down when the image has gone offscreen.

Additional context

Have found that this happens no matter if it's a pre-existing project or a freshly made one.