Skip to main content

reaction_action

Function reaction_action 

Source
fn reaction_action<'a>(
    note: &Note,
    engagement: &Engagement,
    context: &RowContext<'a>,
    dim: Color,
) -> Element<'a, Message>
Expand description

The reaction action of note: a heart, with how many reacted. Pressed, it offers what to react with under it (see reaction_menu), over it where there is no room under, and a click anywhere else puts the offer away. Once the account has reacted it shows what with, in accent: the heart filled, or the emoji in the icon’s place, set no taller than the line. Once is enough: it can’t be pressed again.