In text mode browsers don't show SHOW MORE, because there is no way to hide or expand sections

main
Bob Mottram 2024-04-09 16:38:18 +01:00
parent 7d31536778
commit 70f85b6e97
1 changed files with 6 additions and 1 deletions

View File

@ -800,8 +800,8 @@ def html_timeline(default_timeline: str,
'src="' + users_path + '/' + banner_file + '" /></a>\n' + \
'</header>\n'
is_text_browser = text_mode_browser(ua_str)
if full_width_tl_button_header:
is_text_browser = text_mode_browser(ua_str)
tl_str += \
header_buttons_timeline(default_timeline, box_name, page_number,
translate, users_path, media_button,
@ -1124,6 +1124,11 @@ def html_timeline(default_timeline: str,
elif item_ctr == 0:
tl_str += _get_help_for_timeline(base_dir, box_name)
# if using a text mode browser then don't show SHOW MORE because there
# is no way to hide/expand sections
if is_text_browser:
tl_str = tl_str.replace(translate['SHOW MORE'], '')
tl_str += \
_html_timeline_end(base_dir, nickname, domain_full,
translate,