Fix story page scrolling and ellipsis spacing

This commit is contained in:
2026-05-15 07:35:27 +02:00
parent 74be77b267
commit b8fe8535aa
5 changed files with 60 additions and 21 deletions
+1 -1
View File
@@ -150,7 +150,7 @@ class LayoutRendererModule extends BaseModule {
if (node.type === 'box' && node.value !== '' && j < currentBreak.position) {
const followsGlue = j > 0 && nodes[j - 1].type === 'glue';
const isTrailingPunctuation = /^[,.;:!?)]$/.test(node.value) && !followsGlue;
const isTrailingPunctuation = /^[,.;:!?)]$/.test(node.value) && !followsGlue;
// Check if this box follows a penalty (hyphenation point)
if (lastChild && isTrailingPunctuation) {