Skip to content

Commit

Permalink
fix: Clamp progress bar progress
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Sep 27, 2024
1 parent dab3178 commit c72c385
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/components/src/progress_bar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ pub fn ProgressBar(
height,
} = use_applied_theme!(&theme, progress_bar);

let progress = progress.clamp(0., 100.);

rsx!(
rect {
width: "{width}",
Expand Down

0 comments on commit c72c385

Please sign in to comment.