Skip to main content

estimate_morph_trigger_width

Function estimate_morph_trigger_width 

Source
pub fn estimate_morph_trigger_width(label: &str, has_icon: bool) -> f32
Expand description

Estimates the closed trigger width for label (plus optional 20px icon + 8px gap) with 14px leading and 36px trailing padding, clamped to [88px, 320px].