From f0adba1dba72091c616b6f7029e5900a98a1c8c4 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 11 Oct 2019 22:03:04 +0100 Subject: [PATCH] Linebreaks --- epicyon-calendar.css | 8 +++++++- webinterface.py | 14 +++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/epicyon-calendar.css b/epicyon-calendar.css index 4379aa1bc..eb95c0642 100644 --- a/epicyon-calendar.css +++ b/epicyon-calendar.css @@ -104,7 +104,13 @@ a:link { } .calendar__day__event { - font-size: 2rem; + float: left; + font-size: 30px; + position: relative; +} +.calendar__day__time { + float: left; + font-size: 28px; position: relative; } diff --git a/webinterface.py b/webinterface.py index 9b571673e..d1ba1cafd 100644 --- a/webinterface.py +++ b/webinterface.py @@ -2848,22 +2848,22 @@ def htmlCalendarDay(translate: {}, \ if ev['type']=='Event': if ev.get('startTime'): eventDate=datetime.strptime(ev['startTime'],"%Y-%m-%dT%H:%M:%S%z") - eventTime=eventDate.strftime("%H:%M") + eventTime=eventDate.strftime("%H:%M").strip() if ev.get('name'): - eventDescription=ev['name'] + eventDescription=ev['name'].strip() elif ev['type']=='Place': if ev.get('name'): eventPlace=ev['name'] if eventTime and eventDescription and eventPlace: - calendarStr+=''+eventTime+''+eventPlace+': '+eventDescription+'\n' + calendarStr+=''+eventTime+''+eventPlace+'
'+eventDescription+'\n' elif eventTime and eventDescription and not eventPlace: - calendarStr+=''+eventTime+''+eventDescription+'\n' + calendarStr+=''+eventTime+''+eventDescription+'\n' elif not eventTime and eventDescription and not eventPlace: - calendarStr+=''+eventDescription+'\n' + calendarStr+=''+eventDescription+'\n' elif not eventTime and eventDescription and eventPlace: - calendarStr+=''+eventPlace+': '+eventDescription+'\n' + calendarStr+=''+eventPlace+'
'+eventDescription+'\n' elif eventTime and not eventDescription and eventPlace: - calendarStr+=''+eventTime+''+eventPlace+'\n' + calendarStr+=''+eventTime+''+eventPlace+'\n' calendarStr+='\n' calendarStr+='\n'