Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

LR-EXP-TYPE: the Export dialog is 615 pt wide with JPEG XL in the format row

Claude5343fd10ffce
diff --git a/crates/ui-egui/src/tests_dialog_fit.rs b/crates/ui-egui/src/tests_dialog_fit.rs
index 5c4f1a83f..895a1d864 100644
--- a/crates/ui-egui/src/tests_dialog_fit.rs
+++ b/crates/ui-egui/src/tests_dialog_fit.rs
@@ -93,10 +93,10 @@ fn export_dialog_is_unchanged_in_a_tall_window() {
let h = export_dialog([1600.0, 1000.0]);
assert_fits(&h, "Export at 1600×1000");
let dialog = rect(&h, "dialog:window");
- // (846 tall as before #781: the whole dialog, nothing scrolled away; 546 wide since the
- // watermark's nine positions, #833)
+ // (846 tall as before #781: the whole dialog, nothing scrolled away; 615 wide since the
+ // format row gained JPEG XL, #780)
assert!((dialog.height() - 846.0).abs() <= 1.0, "{dialog:?}");
- assert!((dialog.width() - 546.0).abs() <= 1.0, "{dialog:?}");
+ assert!((dialog.width() - 615.2).abs() <= 1.0, "{dialog:?}");
}
// Scenario: other long dialogs fit a short window too, with their buttons on screen