From 0490ee620a1d479d304cd24b3d6d6c0d44032f7b Mon Sep 17 00:00:00 2001
From: oobabooga <112222186+oobabooga@users.noreply.github.com>
Date: Thu, 19 Dec 2024 16:51:34 -0800
Subject: [PATCH] UI: increase the threshold for a
to be considered long
(some more)
---
modules/html_generator.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/html_generator.py b/modules/html_generator.py
index 0d831af2..f07b6e75 100644
--- a/modules/html_generator.py
+++ b/modules/html_generator.py
@@ -99,7 +99,7 @@ def add_long_list_class(html):
# Find all list items within this list
li_matches = li_pattern.finditer(list_content)
- has_long_item = any(len(li_match.group(1).strip()) > 160 for li_match in li_matches)
+ has_long_item = any(len(li_match.group(1).strip()) > 224 for li_match in li_matches)
if has_long_item:
# Add class="long-list" to the opening tag if it doesn't already have a class