Skip to content

Display correct container width for blobs

Jacques Erasmus requested to merge 334791-display-correct-container-width into master

What does this MR do?

The .limit-container-width class is applied in haml when loading the repository app, but we want to remove the limited width when viewing a blob.

This ensures that the correct container width is displayed when viewing blobs but retained when browsing the repository.

Screenshots or Screencasts (strongly suggested)

before after
Screenshot_2021-09-01_at_16.08.48 Screenshot_2021-09-01_at_16.09.37

How to setup and validate locally (strongly suggested)

This feature is behind the :refactor_blob_viewer feature flag.

  1. run rails c in the project root
  2. run Feature.enable(:refactor_blob_viewer) in the rails console
  3. view a blob

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #334791 (closed)

Edited by Jacques Erasmus

Merge request reports