feat: add scrollbar to xvb tab

This commit is contained in:
mostafaei2002 2024-06-09 20:37:56 +03:30
parent a232058772
commit 089cdf5e17

View file

@ -36,6 +36,8 @@ impl crate::disk::state::Xvb {
gui_api_xmrig: &Arc<Mutex<PubXmrigApi>>, gui_api_xmrig: &Arc<Mutex<PubXmrigApi>>,
private_stats: bool, private_stats: bool,
) { ) {
egui::ScrollArea::vertical().show(ui, |ui| {
let website_height = size.y / 10.0; let website_height = size.y / 10.0;
let width = size.x; let width = size.x;
let height = size.y; let height = size.y;
@ -327,5 +329,7 @@ impl crate::disk::state::Xvb {
ui.hyperlink_to("Rules", XVB_URL_RULES) ui.hyperlink_to("Rules", XVB_URL_RULES)
.on_hover_text("Click here to read the rules and understand how the raffle works."); .on_hover_text("Click here to read the rules and understand how the raffle works.");
}); });
});
} }
} }