tweak(pagination): safety_h=1.0 to reduce underfill

This commit is contained in:
Developer
2026-05-15 23:35:50 +08:00
parent 006cb3cd5e
commit 4add295bfa
2 changed files with 1 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ use crate::theme::{self, BgType, Theme};
pub fn recalculate_pages(book: &mut Book, font_size: f32, line_height: f32, panel_width: f32, panel_height: f32, style: &StyleProfile) {
let char_width = font_size * 1.0;
let safety_w = 0.95;
let safety_h = 0.96;
let safety_h = 1.0;
let chars_per_line = if char_width > 0.0 {
((panel_width / char_width) * safety_w).max(1.0) as usize
} else {