Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions gui/src/app/view/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -436,10 +436,14 @@ pub fn rescan<'a>(
} else {
None
})
.spacing(20)
.spacing(5)
.align_items(Alignment::Center)
.width(Length::Fill),
)
.push(text("Rescan the local blockchain for any missing wallet transaction and rebuild the correct wallet balance")
.width(Length::Fill)
.size(20)
.style(color::GREY_3))
.push(separation().width(Length::Fill))
.push(if let Some(p) = scan_progress {
Container::new(
Expand Down Expand Up @@ -499,7 +503,8 @@ pub fn rescan<'a>(
})
&& is_ok_and(&u32::from_str(&day.value), |&v| v > 0 && v <= 31))
{
Row::new().push(Column::new().width(Length::Fill)).push(
Row::new().push(Column::new().width(Length::Fill))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Row::new().push(Column::new().width(Length::Fill))
Row::new().push(Space::with_width(Length::Fill))

.push(
button::primary(None, "Start rescan")
.on_press(SettingsEditMessage::Confirm)
.width(Length::Shrink),
Expand All @@ -510,7 +515,11 @@ pub fn rescan<'a>(
.width(Length::Shrink),
)
} else {
Row::new().push(Column::new().width(Length::Fill)).push(
Row::new()
.push(text("Rescan date cannot be earlier than wallet creation date or pruned date (if applies)").width(Length::Fill)
.size(15)
.style(color::GREY_3))
.push(Column::new().width(Length::Fill)).push(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Recent Iced version introduced Space widget that help us to get ride of empty Column

Suggested change
.push(Column::new().width(Length::Fill)).push(
.push(Space::with_width(Length::Fill)).push(

button::primary(None, "Start rescan").width(Length::Shrink),
)
},
Expand Down