Page MenuHomePhabricator

Fix carousel width in Vector 2022 with limited width mode disabled
Open, Needs TriagePublic

Description

In Vector 2022, users are able to disable "limited width mode" via their preferences. This removes any limit on page width, and it appears to set the width of the content area equal to its contents.

With View it! enabled, this causes the width of the page content to expand to the width of the entire carousel, as shown below:

Screen Shot 2023-01-30 at 12.51.37 AM.png (1×2 px, 1 MB)

Event Timeline

This has been fixed via adding width: 0px; min-width: 100%; to the View it! gallery element. This causes the element to have no width for the sake of its parent elements calculating their widths, but it will appear at 100% width of the page contents.