Notifications: Put reasons on a new line on small UI

This commit is contained in:
Daniele Tonon 2024-04-11 18:42:27 +02:00 committed by Mike Dilger
parent 3d744f0493
commit 06db88b99d

View File

@ -74,6 +74,7 @@ impl<'a> Notification<'a> for ConnRequest {
.map(|j| format!("{:?}", j.reason))
.collect();
let panel_width = ui.available_width();
StripBuilder::new(ui)
.size(Size::remainder())
.size(Size::initial(TRUNC))
@ -88,6 +89,9 @@ impl<'a> Notification<'a> for ConnRequest {
new_page = Some(Page::RelaysKnownNetwork(Some(self.relay.clone())));
}
if panel_width < 720.0 {
ui.end_row();
}
if self.jobs.len() > 1 {
ui.label(RichText::new("Reasons: "));
} else {