From 227c1ebaaca0d3adae58ee00e103a7956ea4adb8 Mon Sep 17 00:00:00 2001 From: Fabrizio Iannetti Date: Mon, 13 May 2024 07:23:34 +0200 Subject: [PATCH] ui cosmetic: group prev/next buttons --- src/ui/controls.rs | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) 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)