Side-step small SVG width divergence by setting min-width

This commit is contained in:
Esteban Küber 2024-03-18 16:40:43 +00:00
parent cc9631a371
commit 957c0d3488
3 changed files with 3 additions and 3 deletions

View File

@ -4004,7 +4004,7 @@ fn load_compare_outputs(
};
let stderr = if force_color_svg {
anstyle_svg::Term::new().render_svg(&proc_res.stderr)
anstyle_svg::Term::new().min_width_px(730).render_svg(&proc_res.stderr)
} else if explicit_format {
proc_res.stderr.clone()
} else {

View File

@ -1,4 +1,4 @@
<svg width="743px" height="848px" xmlns="http://www.w3.org/2000/svg">
<svg width="750px" height="848px" xmlns="http://www.w3.org/2000/svg">
<style>
.fg { fill: #AAAAAA }
.bg { background: #000000 }

Before

Width:  |  Height:  |  Size: 8.8 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

View File

@ -1,4 +1,4 @@
<svg width="740px" height="74px" xmlns="http://www.w3.org/2000/svg">
<svg width="750px" height="74px" xmlns="http://www.w3.org/2000/svg">
<style>
.fg { fill: #AAAAAA }
.bg { background: #000000 }

Before

Width:  |  Height:  |  Size: 817 B

After

Width:  |  Height:  |  Size: 817 B