diff --git a/webapp_headerbuttons.py b/webapp_headerbuttons.py
index 25f9c55b3..e5cadc394 100644
--- a/webapp_headerbuttons.py
+++ b/webapp_headerbuttons.py
@@ -328,29 +328,23 @@ def header_buttons_timeline(default_timeline: str,
# 4. the calendar button
if not is_text_browser:
if not features_header:
- calendar_alt_text = translate['Calendar']
- if new_calendar_event:
- # indicate that the calendar icon is highlighted
- calendar_alt_text = '*' + calendar_alt_text + '*'
+ # the show/hide button, for a simpler header appearance
if not icons_as_buttons:
tl_str += \
' ' + \
- '' + \
+ '\n'
else:
tl_str += \
- ''
- # the show/hide button, for a simpler header appearance
+ # calendar button
+ if not features_header:
+ calendar_alt_text = translate['Calendar']
+ if new_calendar_event:
+ # indicate that the calendar icon is highlighted
+ calendar_alt_text = '*' + calendar_alt_text + '*'
if not icons_as_buttons:
tl_str += \
' ' + \
- '' + \
+ '\n'
else:
tl_str += \
- '' + \
- '' + translate['Show/Hide Buttons'] + \
+ '' + \
+ '' + translate['Calendar'] + \
''
if features_header: