Skip to content

Commit 6f0fe84

Browse files
committed
Fix rule reference scaling
1 parent 5ed7ca0 commit 6f0fe84

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/ui/mod.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,12 @@ impl eframe::App for Deduct {
220220
$ui.add(
221221
egui::Image::new(egui::include_image!($path))
222222
.tint(tint)
223-
.fit_to_fraction(
224-
Vec2::new(0.975, f32::INFINITY)
225-
)
223+
.fit_to_exact_size(
224+
vec2(
225+
if w * 0.225 > 275.0 { 275.0 } else { w * 0.225 },
226+
f32::INFINITY
227+
)
228+
)
226229
);
227230
};
228231
}

0 commit comments

Comments
 (0)