Notifications: optimize space around Reasons label

This commit is contained in:
Daniele Tonon 2024-04-11 19:52:48 +02:00
parent eb7818b40e
commit d1cda19c6d

View File

@ -99,11 +99,13 @@ impl<'a> Notification<'a> for ConnRequest {
if panel_width < 720.0 {
ui.end_row();
} else {
ui.add_space(20.0);
}
if self.jobs.len() > 1 {
ui.label(RichText::new("Reasons: "));
ui.label(RichText::new("Reasons:"));
} else {
ui.label(RichText::new("Reason: "));
ui.label(RichText::new("Reason:"));
};
for (i, job) in jobstrs.iter().enumerate() {