layout angepasst

This commit is contained in:
Bernd Reuther committed 2026-10-06 14:34:14 +02:00
1 parent 6c092b72f6
commit 23490a8c5a
3 files changed
+34 -18

No files matched your search

+28 -13
View File
@@ -17,9 +17,34 @@
box-sizing: border-box; box-sizing: border-box;
} }
.site-header { display:flex; align-items:center; gap:18px; margin-bottom:24px; } .site-header {
.site-logo { max-width:140px; max-height:48px; object-fit:contain; display:block; flex:0 0 auto; } display: flex;
.site-header h1 { margin:0; } 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 { body {
margin: 0; margin: 0;
@@ -33,16 +58,6 @@ body {
background: var(--color-background); background: var(--color-background);
} }
h1 {
margin: 0 0 8px 0;
font-size: 24px;
}
.subtitle {
color: var(--color-text-secondary);
margin-bottom: 24px;
}
.status { .status {
display: inline-block; display: inline-block;
padding: 8px 14px; padding: 8px 14px;
+2 -2
View File
@@ -204,7 +204,7 @@ app.config["MAX_CONTENT_LENGTH"] = MAX_UPLOAD_MB * 1024 * 1024
def format_datetime(timestamp): def format_datetime(timestamp):
return datetime.fromtimestamp(timestamp, ZoneInfo("Europe/Berlin")).strftime( 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")) dt = datetime.fromisoformat(date.replace("Z", "+00:00"))
if dt.tzinfo is None: if dt.tzinfo is None:
dt = dt.replace(tzinfo=ZoneInfo("Europe/Berlin")) 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: except ValueError:
pass pass
finished.append({ finished.append({
+4 -3
View File
@@ -257,7 +257,7 @@ def format_datetime(timestamp):
return datetime.fromtimestamp( return datetime.fromtimestamp(
timestamp, timestamp,
TIMEZONE TIMEZONE
).strftime("%d.%m.%Y %H:%M:%S") ).strftime("%d.%m.%y %H:%M")
def format_size(size): def format_size(size):
@@ -726,10 +726,11 @@ HTML = """
<div class="site-header"> <div class="site-header">
{% if logo_url %}<img class="site-logo" src="{{ logo_url }}" alt="{{ site_name }}">{% endif %} {% if logo_url %}<img class="site-logo" src="{{ logo_url }}" alt="{{ site_name }}">{% endif %}
<div class="site-header-text">
<h1>{{ page_heading }}</h1> <h1>{{ page_heading }}</h1>
</div>
<div class="subtitle">{{ site_subtitle }}</div> <div class="subtitle">{{ site_subtitle }}</div>
</div>
</div>
<div id="dynamic-content"> <div id="dynamic-content">