1 parent 0a45463 commit 746d126Copy full SHA for 746d126
1 file changed
src/ui/modal_trim.rs
@@ -93,7 +93,12 @@ impl UiModal for TrimModal {
93
.title(Span::styled("Start", start_label_style)),
94
)
95
.render(ss_area, frame.buffer_mut());
96
- let to_title = if self.use_to { "To" } else { "Duration" };
+ let title = if self.use_to { "To" } else { "Duration" };
97
+ let to_title = if let Some(dur) = self.duration {
98
+ format!("{} (max {:.2})", title, dur)
99
+ } else {
100
+ title.to_owned()
101
+ };
102
Paragraph::new(to_value)
103
.block(
104
Block::bordered()
0 commit comments