Skip to main content

Module profile

Module profile 

Source
Expand description

The profile view for Avestruz: who someone is and what they say of themselves, following them, and under that their notes, newest first.

All of it is in one scroller, so that reading on into the notes leaves the rest behind, as wide as the popup is.

ConstantsΒ§

PROFILE_AVATAR_SIZE πŸ”’
How wide the picture on a profile is: the largest an avatar is shown, which is what avatars are kept for.
PROFILE_BANNER_MAX_HEIGHT πŸ”’
PROFILE_BANNER_RADIUS πŸ”’
How much the corners of the picture across the top of a profile are rounded, and how tall it is at most: it comes cut to a strip, and is shown as wide as the profile, which is no wider than the popup.
PROFILE_NAME_SIZE πŸ”’
Text sizes of a profile: the name, what the person says of themselves, and the small print.
PROFILE_SMALL_SIZE πŸ”’
PROFILE_TEXT_SIZE πŸ”’

FunctionsΒ§

banner πŸ”’
The picture across the top of a profile: once it is here, a strip as wide as the profile; until then, the room it will take; nothing, if it can’t be had.
small_print πŸ”’
A line of small print, wrapped.