fix: remove double width inset in recalculate_pages, match rendering width

This commit is contained in:
Developer
2026-05-23 14:47:54 +08:00
parent 2e6ac83759
commit dc6e10d10e

View File

@@ -126,8 +126,7 @@ pub fn recalculate_pages(
panel_height: f32, panel_height: f32,
style: &StyleProfile, style: &StyleProfile,
) { ) {
let inset = 24.0; let available_width = panel_width.max(100.0);
let available_width = (panel_width - inset * 2.0).max(100.0);
let available_height = panel_height.max(100.0); let available_height = panel_height.max(100.0);
let indent_str = if style.first_line_indent > 0.0 { let indent_str = if style.first_line_indent > 0.0 {