UI: increase the threshold for a <li> to be considered long (some more)

This commit is contained in:
oobabooga 2024-12-19 16:51:34 -08:00
parent ee3a533e5c
commit 0490ee620a

View File

@ -99,7 +99,7 @@ def add_long_list_class(html):
# Find all list items within this list # Find all list items within this list
li_matches = li_pattern.finditer(list_content) 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: if has_long_item:
# Add class="long-list" to the opening tag if it doesn't already have a class # Add class="long-list" to the opening tag if it doesn't already have a class