fix(time): align calendar

This commit is contained in:
Sachin Malik 2025-03-19 23:53:19 +05:30 committed by Michael Murphy
parent 9ca6b4ed8f
commit 546811981e

View file

@ -619,7 +619,7 @@ impl cosmic::Application for Window {
calender = calender.push(
text(self.format(weekday_bag, &day_iter.next().unwrap()))
.size(12)
.width(Length::Fixed(36.0))
.width(Length::Fixed(44.0))
.align_x(Alignment::Center),
);
@ -680,8 +680,8 @@ fn date_button(day: u32, is_month: bool, is_day: bool, is_today: bool) -> Button
let button = button::custom(text::body(format!("{day}")).center())
.class(style)
.height(Length::Fixed(36.0))
.width(Length::Fixed(36.0));
.height(Length::Fixed(44.0))
.width(Length::Fixed(44.0));
if is_month {
button.on_press(Message::SelectDay(day))