Feature: Abmelden-Button im Header hinzugefuegt
Der vorhandene signOut-Button lag in der Auth-Karte, die bei angemeldetem Zustand komplett versteckt wird. Neuer User-Bereich im Header zeigt den angemeldeten Nutzer an und ermoeglicht das Abmelden (z. B. an einem fremden Rechner). Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
31
styles.css
31
styles.css
@ -38,12 +38,32 @@ body {
|
||||
|
||||
/* Header */
|
||||
.header {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
padding: 20px 0;
|
||||
margin-bottom: 30px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
/* User-Bereich im Header (nur sichtbar, wenn angemeldet) */
|
||||
.user-area {
|
||||
position: absolute;
|
||||
top: 20px;
|
||||
right: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.user-name {
|
||||
color: var(--text-secondary);
|
||||
font-size: 0.95rem;
|
||||
max-width: 220px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.header h1 {
|
||||
font-size: 2.5rem;
|
||||
margin-bottom: 10px;
|
||||
@ -356,6 +376,11 @@ section h2 {
|
||||
border-color: var(--primary-color);
|
||||
}
|
||||
|
||||
.btn-small {
|
||||
padding: 6px 14px;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.btn-danger {
|
||||
background-color: var(--error-color);
|
||||
color: white;
|
||||
@ -550,6 +575,12 @@ section h2 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
.user-area {
|
||||
position: static;
|
||||
justify-content: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.stat-value {
|
||||
font-size: 2rem;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user