class

ContributorMural::Renderers::Grid

Inherits ContributorMural::Renderer < Reference < Object

Classic avatar wall: fixed-size avatars in rows, optional name labels and a smaller role line beneath them.

Constants

CLIP_ID = "avatar-clip"
LABEL_HEIGHT = 18
ROLE_HEIGHT = 14

Instance methods

fetch_size(user : ResolvedUser) : Int32

Pixel size at which to fetch this user's avatar (2x render size for crisp display on high-DPI screens).

Source
prepare(users : Array(ResolvedUser)) : Nil

Called with the full user list before avatars are fetched, so renderers with relative sizing (mosaic tiers) can precompute per-user sizes.

Source