Tighten TimeSpinner spacing and fix build warnings

Reduce gap between numbers and h/m unit labels in the workday
schedule spinners. Remove unused parse_hour function and fix
Svelte state_referenced_locally warning in BreakScreen.
This commit is contained in:
Your Name
2026-02-07 11:12:13 +02:00
parent d93d231a45
commit b01dbd6c0b
3 changed files with 5 additions and 13 deletions

View File

@@ -462,14 +462,6 @@ pub enum IdleCheckResult {
NaturalBreakDetected(u64), // duration in seconds
}
fn parse_hour(time_str: &str) -> u32 {
time_str
.split(':')
.next()
.and_then(|h| h.parse().ok())
.unwrap_or(9)
}
/// Returns the number of seconds since last user input (mouse/keyboard).
#[cfg(windows)]
pub fn get_idle_seconds() -> u64 {