From c644c5f7e98fa48a3a9d2a9be1c07598e31602f1 Mon Sep 17 00:00:00 2001 From: Kristian Myram Date: Mon, 12 Oct 2026 08:02:34 +0200 Subject: [PATCH] Fix #978: widen Project Settings dialog --- crates/ui-egui/src/panels/forms.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/panels/forms.rs b/crates/ui-egui/src/panels/forms.rs index 039ebb69..d5cb1f00 100644 --- a/crates/ui-egui/src/panels/forms.rs +++ b/crates/ui-egui/src/panels/forms.rs @@ -766,8 +766,10 @@ pub fn show_form(app: &mut EffectcraftApp, ctx: &egui::Context, t: &Tokens) { let h = 120.0 + rows; let mut regs: Vec<(String, egui::Rect, String)> = vec![]; let mut browse: Option = None; - // Wide enough for a label column and a 240 px popup without a horizontal scroll bar. - super::dialogs::modal(ctx, &f.title.clone(), vec2(480.0, h), t, |ui| { + // Project Settings needs room for its labels and the selected GPU adapter name. At the + // generic form width its grid overflows, pushing the buttons off the visible area (#978). + let width = if f.title == "Project Settings" { 800.0 } else { 480.0 }; + super::dialogs::modal(ctx, &f.title.clone(), vec2(width, h), t, |ui| { egui::Grid::new("form-grid").num_columns(2).spacing([14.0, 10.0]).show(ui, |ui| { for (i, fl) in f.fields.iter_mut().enumerate() { ui.label(tr(&fl.label));