fix: 打卡列表按日期倒序,最近的排在前面

This commit is contained in:
2026-11-19 17:12:56 +08:00
parent 4899209621
commit fe8d02f0f7
+2
View File
@@ -111,9 +111,11 @@ fn load(start: NaiveDate, end: NaiveDate) -> punchlog::Result<punchlog::WeekRepo
fn show(ui: &MainWindow, report: &punchlog::WeekReport) {
ui.set_error(String::new().into());
// 列表按日期倒序,离今天越近越靠前。命令行仍按日期正序。
let rows: Vec<DayRow> = report
.days
.iter()
.rev()
.map(|day| {
let (site, memo) = day.content();
DayRow {