We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ed7ca0 commit 6f0fe84Copy full SHA for 6f0fe84
src/ui/mod.rs
@@ -220,9 +220,12 @@ impl eframe::App for Deduct {
220
$ui.add(
221
egui::Image::new(egui::include_image!($path))
222
.tint(tint)
223
- .fit_to_fraction(
224
- Vec2::new(0.975, f32::INFINITY)
225
- )
+ .fit_to_exact_size(
+ vec2(
+ if w * 0.225 > 275.0 { 275.0 } else { w * 0.225 },
226
+ f32::INFINITY
227
+ )
228
229
);
230
};
231
}
0 commit comments