From 4a5cdf99a8358e1708e56632f2c775e07bf1d8c6 Mon Sep 17 00:00:00 2001 From: voedipus Date: Sun, 10 Aug 2025 02:13:12 +0500 Subject: [PATCH] center "refresh" button in right click view --- src/view.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/view.rs b/src/view.rs index bba4da8..27c8716 100644 --- a/src/view.rs +++ b/src/view.rs @@ -54,7 +54,13 @@ impl AppState { .width(Length::Fill) .spacing(20) .padding(10) - .push(button::text(fl!("refresh")).on_press(AppMsg::Refresh)) + .push( + row() + .width(Length::Fill) + .push(horizontal_space()) + .push(button::text(fl!("refresh")).on_press(AppMsg::Refresh)) + .push(horizontal_space()), + ) .into() }