Project

General

Profile

Actions

Feature #20376

closed

Feature #19592: Groups Page Re-Design

Improvements to group cover aspect ratio and/or height across views

Added by Boone Gorges about 1 month ago. Updated 19 days ago.

Status:
Resolved
Priority name:
Normal
Assignee:
Category name:
Groups (misc)
Target version:
Start date:
2024-05-21
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

In the original comps for redesign groups, we see a number of different types of behavior for group cover images:

1. On the group home page, the cover image element is 360px tall and 100% width of the viewport
2. On other group pages, the cover image element is 250px tall and 100% width of the viewport

In both cases, the fixed height but variable width means that background-size: cover is used. In our case, this generally means that the cover image is stretched to the full width of the viewport, with a rectangle 360px or 250px high shown from the center of the cover image.

This behavior causes some inconsistencies, since the "crop" behavior is different on viewports of different widths. This can be difficult for the group admin to understand. It's made even more problematic by the fact that the Manage > Cover Image interface gives a preview of the results, but only at one of the 250px/360px heights.

There's a further problem with the approach, which is that background-size: cover forces the background image to be full-width, even if it means upsizing. This can result in a pixelated image.

Let's use this ticket to talk through some short-term and long-term strategies.


Files

repeat-x.png (2.12 MB) repeat-x.png Raymond Hoh, 2024-05-21 03:51 PM
07.webp (102 KB) 07.webp Raymond Hoh, 2024-06-05 08:24 AM
08.webp (60.2 KB) 08.webp Raymond Hoh, 2024-06-05 08:24 AM
Commons-01.webp (11.9 KB) Commons-01.webp Raymond Hoh, 2024-06-05 08:24 AM
Commons-02.webp (70.5 KB) Commons-02.webp Raymond Hoh, 2024-06-05 08:24 AM
Commons-09.webp (95.1 KB) Commons-09.webp Raymond Hoh, 2024-06-05 08:24 AM
Commons-10.webp (53.7 KB) Commons-10.webp Raymond Hoh, 2024-06-05 08:24 AM
Commons-12.webp (17.3 KB) Commons-12.webp Raymond Hoh, 2024-06-05 08:24 AM
Commons-13.webp (36.1 KB) Commons-13.webp Raymond Hoh, 2024-06-05 08:24 AM
Commons-14.webp (17.5 KB) Commons-14.webp Raymond Hoh, 2024-06-05 08:24 AM
Commons-16.webp (114 KB) Commons-16.webp Raymond Hoh, 2024-06-05 08:25 AM
Commons-17.webp (34.1 KB) Commons-17.webp Raymond Hoh, 2024-06-05 08:33 AM
Actions

Also available in: Atom PDF