Skip to main content

fact_row

Function fact_row 

Source
pub fn fact_row<'a, Message: 'a>(
    label: impl IntoFragment<'a>,
    value: impl Into<Element<'a, Message>>,
    scale: FontScale,
) -> Element<'a, Message>
Expand description

One fact about the thing a panel describes: a dim label on the left, at a fixed width so every value in the panel lines up, and the value beside it — Where ~/projects/hyprsuite/src.

The value is an element rather than a string so a caller can set a path or a mode in the mono font (config_line), add a chip, or put a button beside it. A long value wraps under itself, never back under the label.