handle hours (#15)

This commit is contained in:
Jens K.
2024-12-17 11:16:53 +01:00
committed by GitHub
parent b7d6a6c139
commit 8ddbc77baf
4 changed files with 266 additions and 87 deletions

View File

@@ -75,7 +75,10 @@ impl StatefulWidget for CountdownWidget {
let area = center(
area,
Constraint::Length(max(clock.get_width(), label.width() as u16)),
Constraint::Length(max(
clock.get_width(&state.clock.get_format()),
label.width() as u16,
)),
Constraint::Length(clock.get_height() + 1 /* height of label */),
);
let [v1, v2] =