Skip to content

Blob refactor: Prevent image from overflowing parent

Jacques Erasmus requested to merge fix-image-width into master

What does this MR do and why?

This prevents the image from overflowing outside of its parent in the refactored blob viewer.

Screenshots or screen recordings

before after
Screenshot_2022-03-09_at_12.31.27 Large image Screenshot_2022-03-09_at_12.27.10
Small image Screenshot_2022-03-09_at_12.27.20

How to set up and validate locally

  1. Enable the Blob Viewer Refactor feature flag
Feature.enable(:refactor_blob_viewer)
  1. Open an image in the repository file browser

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading