feat: enable scrolling for every middle panels

This commit is contained in:
Cyrix126 2024-07-21 14:34:02 +02:00
parent e4864c7dd8
commit 3c010f6e2b
4 changed files with 122 additions and 114 deletions

View file

@ -51,6 +51,7 @@ impl P2pool {
let text_edit = size.y / 25.0;
//---------------------------------------------------------------------------------------------------- [Simple] Console
// debug!("P2Pool Tab | Rendering [Console]");
egui::ScrollArea::vertical().show(ui, |ui| {
ui.group(|ui| {
let text = &lock!(api).output;
let nb_lines = num_lines(text);
@ -171,5 +172,6 @@ impl P2pool {
} else {
self.advanced(ui, size, text_edit, node_vec);
}
});
}
}

View file

@ -47,6 +47,7 @@ impl Xmrig {
let text_edit = size.y / 25.0;
//---------------------------------------------------------------------------------------------------- [Simple] Console
debug!("XMRig Tab | Rendering [Console]");
egui::ScrollArea::vertical().show(ui, |ui| {
ui.group(|ui| {
let text = &lock!(api).output;
let nb_lines = num_lines(text);
@ -483,5 +484,6 @@ impl Xmrig {
});
});
}
});
}
}

View file

@ -32,6 +32,7 @@ impl XmrigProxy {
let height = size.y;
let space_h = height / 48.0;
let text_edit = size.y / 25.0;
egui::ScrollArea::vertical().show(ui, |ui| {
ui.vertical_centered(|ui| {
ui.add_space(space_h);
ui.style_mut().override_text_style = Some(TextStyle::Heading);
@ -424,5 +425,6 @@ impl XmrigProxy {
});
});
}
});
}
}

View file

@ -36,6 +36,7 @@ impl crate::disk::state::Xvb {
let width = size.x;
let height = size.y;
let space_h = height / 48.0;
egui::ScrollArea::vertical().show(ui, |ui| {
// logo and website link
ui.vertical_centered(|ui| {
ui.add_sized(
@ -253,5 +254,6 @@ impl crate::disk::state::Xvb {
ui.hyperlink_to("Rules", XVB_URL_RULES)
.on_hover_text("Click here to read the rules and understand how the raffle works.");
});
});
}
}