When formatting UI text for alignment (padding/truncation like {position:<N}), keep the visual rules consistent across all related components and validate against the actual available width. If the change would alter the product’s visual language/layout rules (e.g., needing new rules to display a dot for 100+), treat it as a design/discussion item rather than bundling it into a narrowly scoped fix.
How to apply:
{position:<2}, other lists that render the same “position” should use the same convention).Example (consistent padding):
// Keep the same position formatting convention used by other lists.
Span::styled(format!("{:<2}", visible_idx + 1), num_style)