diff --git a/config/style.css b/config/style.css index fcfa4a9..bfc74e8 100644 --- a/config/style.css +++ b/config/style.css @@ -17,9 +17,34 @@ box-sizing: border-box; } -.site-header { display:flex; align-items:center; gap:18px; margin-bottom:24px; } -.site-logo { max-width:140px; max-height:48px; object-fit:contain; display:block; flex:0 0 auto; } -.site-header h1 { margin:0; } +.site-header { + display: flex; + align-items: center; + gap: 18px; + margin-bottom: 24px; +} + +.site-logo { + max-width: 140px; + max-height: 48px; + object-fit: contain; + display: block; + flex: 0 0 auto; +} + +.site-header-text { + min-width: 0; +} + +.site-header h1 { + margin: 0 0 8px 0; + font-size: 24px; +} + +.site-header .subtitle { + color: var(--color-text-secondary); + margin-bottom: 0; +} body { margin: 0; @@ -33,16 +58,6 @@ body { background: var(--color-background); } -h1 { - margin: 0 0 8px 0; - font-size: 24px; -} - -.subtitle { - color: var(--color-text-secondary); - margin-bottom: 24px; -} - .status { display: inline-block; padding: 8px 14px; diff --git a/editor.py b/editor.py index bc5498d..9324c2e 100644 --- a/editor.py +++ b/editor.py @@ -204,7 +204,7 @@ app.config["MAX_CONTENT_LENGTH"] = MAX_UPLOAD_MB * 1024 * 1024 def format_datetime(timestamp): return datetime.fromtimestamp(timestamp, ZoneInfo("Europe/Berlin")).strftime( - "%d.%m.%Y %H:%M:%S" + "%d.%m.%y %H:%M" ) @@ -1900,7 +1900,7 @@ def index(): dt = datetime.fromisoformat(date.replace("Z", "+00:00")) if dt.tzinfo is None: dt = dt.replace(tzinfo=ZoneInfo("Europe/Berlin")) - dt_text = dt.astimezone(ZoneInfo("Europe/Berlin")).strftime("%d.%m.%Y %H:%M:%S") + dt_text = dt.astimezone(ZoneInfo("Europe/Berlin")).strftime("%d.%m.%y %H:%M") except ValueError: pass finished.append({ diff --git a/recorder.py b/recorder.py index 5de484e..b4a9e09 100644 --- a/recorder.py +++ b/recorder.py @@ -257,7 +257,7 @@ def format_datetime(timestamp): return datetime.fromtimestamp( timestamp, TIMEZONE - ).strftime("%d.%m.%Y %H:%M:%S") + ).strftime("%d.%m.%y %H:%M") def format_size(size): @@ -726,10 +726,11 @@ HTML = """