Tweak calendar borders
This commit is contained in:
@ -352,14 +352,9 @@ where
|
|||||||
|
|
||||||
let month = day.month();
|
let month = day.month();
|
||||||
|
|
||||||
let month_border = |other_day| match days.get(&other_day) {
|
let month_border = |other_day: Date<_>| other_day.month() != month;
|
||||||
Some(_) => other_day.month() != month,
|
let month_or_week_border = |other_day: Date<_>| {
|
||||||
None => true,
|
other_day.iso_week() != week || month_border(other_day)
|
||||||
};
|
|
||||||
|
|
||||||
let month_or_week_border = |other_day| match days.get(&other_day) {
|
|
||||||
Some(_) => other_day.iso_week() != week || month_border(other_day),
|
|
||||||
None => true,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const MIN_WEIGHT: f32 = 0.5;
|
const MIN_WEIGHT: f32 = 0.5;
|
||||||
@ -378,7 +373,6 @@ where
|
|||||||
duration,
|
duration,
|
||||||
};
|
};
|
||||||
|
|
||||||
//(day.weekday(), Some(ctx))
|
|
||||||
Some(ctx)
|
Some(ctx)
|
||||||
})
|
})
|
||||||
.collect()
|
.collect()
|
||||||
|
|||||||
Reference in New Issue
Block a user