Member list: a rank group with a single member (e.g. the leadership) is centered
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
2a0e5c6fbc
commit
62bc861d13
2 changed files with 6 additions and 1 deletions
|
|
@ -4106,6 +4106,10 @@ body.home-page .navbar {
|
|||
gap: 0.9rem;
|
||||
}
|
||||
|
||||
/* Nur eine Person in der Gruppe (z.B. Brigadegeneral): Ueberschrift und Karte mittig */
|
||||
.member-section-single .raid-header { justify-content: center; }
|
||||
.member-section-single .member-grid:not(.member-list) { grid-template-columns: minmax(0, 420px); justify-content: center; }
|
||||
|
||||
.member-card {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
|
|
|
|||
|
|
@ -48,7 +48,8 @@
|
|||
|
||||
function section(title, items) {
|
||||
var panel = document.createElement('div');
|
||||
panel.className = 'panel';
|
||||
// Gruppe mit nur einer Person (z.B. die Leitung): Karte mittig statt links in der ersten Spalte
|
||||
panel.className = 'panel' + (items.length === 1 ? ' member-section-single' : '');
|
||||
var head = document.createElement('div');
|
||||
head.className = 'raid-header';
|
||||
var h2 = document.createElement('h2');
|
||||
|
|
|
|||
Loading…
Reference in a new issue