Profil: Header-Bild, Beschreibung, eigene Einstellungsseite

Das Profil zeigt ein Header-Bild (ohne Bild ein schwarzer Balken), den
überlappenden Avatar, Name, Beschreibung mit klickbaren Links und die
Beitragszahl. Der Eigentümer bearbeitet Bilder und Beschreibung direkt
auf dem Profil; Name ändern und Konto löschen liegen jetzt unter
/settings, das in der Navigation eingeblendet ist.

Backend: Spalten bio und header in account, neue Endpunkte
/api/user/bio, /api/user/header und /api/user/header/remove;
/u/{name}/info liefert header, bio und entries. Kontolöschung räumt das
Header-Bild mit ab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TiXsPUqw7oeomZ8wZrQW5q
This commit is contained in:
irrlicht
2026-10-10 20:15:47 +02:00
co-authored by Claude Opus 5.5
parent f8cd808c2d
commit 726f5491ff
14 changed files with 452 additions and 117 deletions
+60 -6
View File
@@ -408,7 +408,6 @@ img.avatar {
}
img.avatar-sm { width: var(--avatar-sm); height: var(--avatar-sm); }
img.avatar-lg { width: 72px; height: 72px; }
/* Byline mit kleinem Avatar neben Name + Zeitstempel. Einheitliche 1rem für die
ganze Meta-Zeile (Name, Datum, Repost-Cooldown), damit nichts größer rausfällt
@@ -430,13 +429,68 @@ img.avatar-lg { width: 72px; height: 72px; }
/* Melden steht rechts in der Byline. */
.byline .report { margin-left: auto; }
/* Profilkopf: großer Avatar links neben Name und "Mitglied seit". */
.profile-head {
display: flex;
align-items: center;
gap: 0.75rem;
/* --- Profil ---
Header-Bild im Format 3:1 über die ganze Spalte; ohne Bild ein schwarzer
Balken. Der Avatar ragt zur Hälfte in den Header hinein, ein weißer Rand
mit schwarzer Kante trennt ihn vom Bild. */
#profile { padding: 0; }
.profile-header {
aspect-ratio: 3 / 1;
background-color: black;
}
.profile-header img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
margin: 0;
max-width: none;
}
.profile-body { padding: 0 0.5rem 0.5rem; }
.profile-top {
--avatar-xl: 112px;
display: flex;
justify-content: space-between;
align-items: flex-end;
margin-top: calc(var(--avatar-xl) / -2);
}
img.avatar-xl {
width: var(--avatar-xl);
height: var(--avatar-xl);
border: 4px solid white;
outline: 1px solid black;
}
#profile-name {
display: block;
margin: 0.4rem 0 0;
padding: 0;
}
.bio {
margin: 0.4rem 0;
font-size: 1.2rem;
line-height: 1.4;
overflow-wrap: anywhere;
}
#profile-info { margin: 0.4rem 0 0; }
/* Bearbeiten-Bereich des Eigentümers unter dem Profilkopf. */
.profile-edit {
border-top: 1px solid black;
margin-top: 0.5rem;
}
.profile-edit h3, #settings h3 { margin: 0.8rem 0 0; }
.profile-edit form { display: inline-block; width: 100%; }
.counter { margin-left: auto; font-size: 1rem; }
/* --- Thread-Strich ---
Der Strich ist ein eigenes Flex-Geschwister links neben dem Inhalt, nicht
eine Border am Inhalt selbst. align-self: stretch macht ihn exakt so hoch