diff --git a/src/ui/controls.rs b/src/ui/controls.rs index f68c89e..a94fdee 100644 --- a/src/ui/controls.rs +++ b/src/ui/controls.rs @@ -52,16 +52,11 @@ impl Controls { SegmentedButton::new(text("Month"), ViewMode::Month, self.mode, Message::ViewModeSelected), SegmentedButton::new(text("Year"), ViewMode::Year, self.mode, Message::ViewModeSelected), ]) - .push( - Button::new(Text::new("<")) - .on_press(self.get_msg_prev()) - .style(button::secondary), - ) - .push( - Button::new(Text::new(">")) - .on_press(self.get_msg_next()) - .style(button::secondary), - ) + .push(row![ + Button::new(Text::new("<")).on_press(self.get_msg_prev()).style(button::secondary), + Button::new(Text::new(">")).on_press(self.get_msg_next()).style(button::secondary), + ].spacing(0).padding(0) + ) .push( Text::new(description) .width(Length::Fill)