Settings UI: ScrollArea for all settings pages

This commit is contained in:
Bu5hm4nn 2024-02-28 18:06:02 -06:00
parent 80379dff15
commit a81f4ad832

View File

@ -87,13 +87,13 @@ pub(super) fn update(app: &mut GossipUi, ctx: &Context, frame: &mut eframe::Fram
ui.separator();
ui.add_space(10.0);
match app.settings_tab {
egui::ScrollArea::new([true, true]).show(ui, |ui| match app.settings_tab {
SettingsTab::Content => content::update(app, ctx, frame, ui),
SettingsTab::Database => database::update(app, ctx, frame, ui),
SettingsTab::Id => id::update(app, ctx, frame, ui),
SettingsTab::Network => network::update(app, ctx, frame, ui),
SettingsTab::Posting => posting::update(app, ctx, frame, ui),
SettingsTab::Ui => ui::update(app, ctx, frame, ui),
}
});
});
}