Open GerkinDev opened 2 years ago
This refactor tries to mutualize avatar display & improve performance by resizing the avatar.
The new partial, partials/whoami/img-url, has 3 parameters:
partials/whoami/img-url
size
urlSource
fileSource
This refactor tries to mutualize avatar display & improve performance by resizing the avatar.
The new partial,
partials/whoami/img-url
, has 3 parameters:size
: the (required) width of the output imageurlSource
: an (optional) url to an avatar to use without transformsfileSource
: an (optional) path to an asset or static file. If it's an asset, it is resized, otherwise, it is used as-is.