fix(time): align calendar
This commit is contained in:
parent
9ca6b4ed8f
commit
546811981e
1 changed files with 3 additions and 3 deletions
|
|
@ -619,7 +619,7 @@ impl cosmic::Application for Window {
|
||||||
calender = calender.push(
|
calender = calender.push(
|
||||||
text(self.format(weekday_bag, &day_iter.next().unwrap()))
|
text(self.format(weekday_bag, &day_iter.next().unwrap()))
|
||||||
.size(12)
|
.size(12)
|
||||||
.width(Length::Fixed(36.0))
|
.width(Length::Fixed(44.0))
|
||||||
.align_x(Alignment::Center),
|
.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())
|
let button = button::custom(text::body(format!("{day}")).center())
|
||||||
.class(style)
|
.class(style)
|
||||||
.height(Length::Fixed(36.0))
|
.height(Length::Fixed(44.0))
|
||||||
.width(Length::Fixed(36.0));
|
.width(Length::Fixed(44.0));
|
||||||
|
|
||||||
if is_month {
|
if is_month {
|
||||||
button.on_press(Message::SelectDay(day))
|
button.on_press(Message::SelectDay(day))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue