Lower cross-ref expand threshold to 120 chars

More cross-refs will auto-expand now with the lower threshold.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-12-05 08:44:33 -05:00
parent c13456d0e4
commit e659b0dadc
+2 -2
View File
@@ -265,8 +265,8 @@ async def read_chapter(request: Request, book: str, chapter: int):
# Check next verse length - long verse = more margin room
next_verse = verse_list[i + 1] if i + 1 < len(verse_list) else None
next_verse_len = len(next_verse.text) if next_verse else 0
# Expand if next verse is 150+ chars (provides margin space)
commentary['xref_auto_expand'] = next_verse_len >= 150
# Expand if next verse is 120+ chars (provides margin space)
commentary['xref_auto_expand'] = next_verse_len >= 120
# Generate chapter overview
chapter_overview = generate_chapter_overview(book, chapter, verses)