fix(article): fix Opus article body font size too small (#1897)

New Opus format uses font_level string instead of numeric font_size,
causing font size to fall back to Flutter theme default (14px) instead
of the expected 16px. Added Word.effectiveFontSize: small→13px,
others→16px (consistent with legacy HTML article format).
This commit is contained in:
Starfallen
2026-04-23 21:17:43 +08:00
committed by GitHub
parent 79c9849c80
commit 354282930c
2 changed files with 8 additions and 1 deletions

View File

@@ -151,7 +151,7 @@ class OpusContent extends StatelessWidget {
style: _getStyle(
word?.style,
color ?? defaultColor,
word?.fontSize,
word?.effectiveFontSize,
),
);
}