Premades: Avatar und Name eines Mitglieds fuehren zur Profilseite (nur aktive Konten; Mitglieder verbuendeter Legionen nur fuer die, die sie sehen duerfen; im Bearbeiten-Modus kein Link, dort wird gezogen). style.css: dazu einige Gear-Guide-Regeln wieder in ihrer Reihenfolge wie in der Arbeitskopie (nur verschoben, inhaltlich gleich)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
parent
bb4e2f149a
commit
05d76234ce
2 changed files with 34 additions and 16 deletions
|
|
@ -1709,6 +1709,11 @@ body.lumina-dialog-open { overflow: hidden; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.premade-slot-name .text-muted { font-size: 0.78rem; }
|
.premade-slot-name .text-muted { font-size: 0.78rem; }
|
||||||
|
.premade-slot-profile { display: flex; align-items: center; gap: 0.75rem; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
|
||||||
|
.premade-slot-profile:hover { color: inherit; text-decoration: none; }
|
||||||
|
.premade-slot-profile:hover strong { color: var(--gold); text-decoration: underline; }
|
||||||
|
/* Im Bearbeiten-Modus wird gezogen - dann kein Link */
|
||||||
|
.is-editing .premade-slot-profile { pointer-events: none; }
|
||||||
|
|
||||||
.premade-crown {
|
.premade-crown {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
|
|
@ -6689,11 +6694,6 @@ button.gear-guide-skill:hover { border-color: var(--gold); transform: translateY
|
||||||
.gear-guide-style-tab.is-active { border-color: var(--gold); background: rgba(201, 162, 39, 0.18); color: var(--gold); }
|
.gear-guide-style-tab.is-active { border-color: var(--gold); background: rgba(201, 162, 39, 0.18); color: var(--gold); }
|
||||||
.gear-guide-style-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 0.5rem; }
|
.gear-guide-style-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 0.5rem; }
|
||||||
.gear-guide-order[hidden] { display: none; }
|
.gear-guide-order[hidden] { display: none; }
|
||||||
.gear-guide-skill-details { display: flex; flex-direction: column; gap: 0.75rem; }
|
|
||||||
.gear-guide-skills.is-interactive [data-guide-hidden] { display: none; }
|
|
||||||
.gear-guide-skill-detail { padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(0, 0, 0, 0.22); }
|
|
||||||
.gear-guide-skill-detail-head { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.6rem; }
|
|
||||||
.gear-guide-skill-detail h4 { margin: 0 0 0.25rem; font-size: 1.05rem; }
|
|
||||||
/* Alternative Stigmen (nicht im Skill-Plan, nur in Spielweisen): gestrichelter Rahmen */
|
/* Alternative Stigmen (nicht im Skill-Plan, nur in Spielweisen): gestrichelter Rahmen */
|
||||||
.gear-guide-skill.is-alt, .gear-guide-skill-row.is-stigma .gear-guide-skill.is-alt { border-style: dashed; }
|
.gear-guide-skill.is-alt, .gear-guide-skill-row.is-stigma .gear-guide-skill.is-alt { border-style: dashed; }
|
||||||
.gear-guide-kind.is-alt { background: rgba(160, 120, 230, 0.15); color: #c4a6f2; }
|
.gear-guide-kind.is-alt { background: rgba(160, 120, 230, 0.15); color: #c4a6f2; }
|
||||||
|
|
@ -6702,16 +6702,21 @@ button.gear-guide-skill:hover { border-color: var(--gold); transform: translateY
|
||||||
.gear-guide-order .gear-guide-style-hide { gap: 0.2rem; font-size: 0.75rem; cursor: pointer; }
|
.gear-guide-order .gear-guide-style-hide { gap: 0.2rem; font-size: 0.75rem; cursor: pointer; }
|
||||||
.gear-guide-order .gear-guide-style-hide input { width: auto; min-height: 0; margin: 0; }
|
.gear-guide-order .gear-guide-style-hide input { width: auto; min-height: 0; margin: 0; }
|
||||||
.gear-guide-priority.is-off { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); text-decoration: line-through; }
|
.gear-guide-priority.is-off { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); text-decoration: line-through; }
|
||||||
.gear-guide-priority { padding: 0.05rem 0.55rem; border-radius: 999px; background: rgba(201, 162, 39, 0.2); color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.7rem; }
|
.gear-guide-skill-details { display: flex; flex-direction: column; gap: 0.75rem; }
|
||||||
.gear-guide-specs-title { margin: 0.4rem 0 0.5rem; font-size: 0.85rem; }
|
.gear-guide-skills.is-interactive [data-guide-hidden] { display: none; }
|
||||||
.gear-guide-specs { margin: 0 0 0.75rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.86rem; }
|
.gear-guide-skill-detail { padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(0, 0, 0, 0.22); }
|
||||||
.gear-guide-specs li { display: grid; grid-template-columns: 30px 2.6rem minmax(0, 1fr); align-items: center; gap: 0.6rem; padding: 0.4rem 0.6rem; border: 1px solid transparent; border-radius: 8px; }
|
.gear-guide-skill-detail-head { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.6rem; }
|
||||||
.gear-guide-specs li.is-on { border-color: rgba(201, 162, 39, 0.45); background: rgba(255, 255, 255, 0.05); color: var(--text); font-weight: 600; }
|
.gear-guide-skill-detail h4 { margin: 0 0 0.25rem; font-size: 1.05rem; }
|
||||||
.gear-guide-target { color: var(--gold); font-weight: 600; }
|
.gear-guide-target { color: var(--gold); font-weight: 600; }
|
||||||
.gear-guide-level-sources { margin: -0.15rem 0 0.25rem; font-size: 0.78rem; color: #8fd893; }
|
.gear-guide-level-sources { margin: -0.15rem 0 0.25rem; font-size: 0.78rem; color: #8fd893; }
|
||||||
.gear-guide-skill.is-boosted .gear-guide-skill-level { color: #8fd893; }
|
.gear-guide-skill.is-boosted .gear-guide-skill-level { color: #8fd893; }
|
||||||
.gear-guide-skill-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.8rem; }
|
.gear-guide-skill-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.8rem; }
|
||||||
.gear-guide-kind { padding: 0.05rem 0.45rem; border-radius: 4px; background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }
|
.gear-guide-kind { padding: 0.05rem 0.45rem; border-radius: 4px; background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }
|
||||||
|
.gear-guide-priority { padding: 0.05rem 0.55rem; border-radius: 999px; background: rgba(201, 162, 39, 0.2); color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.7rem; }
|
||||||
|
.gear-guide-specs-title { margin: 0.4rem 0 0.5rem; font-size: 0.85rem; }
|
||||||
|
.gear-guide-specs { margin: 0 0 0.75rem; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.86rem; }
|
||||||
|
.gear-guide-specs li { display: grid; grid-template-columns: 30px 2.6rem minmax(0, 1fr); align-items: center; gap: 0.6rem; padding: 0.4rem 0.6rem; border: 1px solid transparent; border-radius: 8px; }
|
||||||
|
.gear-guide-specs li.is-on { border-color: rgba(201, 162, 39, 0.45); background: rgba(255, 255, 255, 0.05); color: var(--text); font-weight: 600; }
|
||||||
.gear-guide-specs li.is-off { color: var(--text-muted); }
|
.gear-guide-specs li.is-off { color: var(--text-muted); }
|
||||||
.gear-guide-spec-icon { position: relative; display: inline-flex; width: 26px; height: 26px; }
|
.gear-guide-spec-icon { position: relative; display: inline-flex; width: 26px; height: 26px; }
|
||||||
.gear-guide-spec-img { width: 26px; height: 26px; object-fit: contain; filter: grayscale(1) brightness(0.65); opacity: 0.55; }
|
.gear-guide-spec-img { width: 26px; height: 26px; object-fit: contain; filter: grayscale(1) brightness(0.65); opacity: 0.55; }
|
||||||
|
|
@ -6803,6 +6808,7 @@ button.gear-guide-skill:hover { border-color: var(--gold); transform: translateY
|
||||||
.gear-guide-note-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
|
.gear-guide-note-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
|
||||||
.gear-guide-order { display: flex; flex-direction: row; align-items: center; gap: 0.4rem; margin: 0 0 0 auto; font-size: 0.8rem; color: var(--text-muted); }
|
.gear-guide-order { display: flex; flex-direction: row; align-items: center; gap: 0.4rem; margin: 0 0 0 auto; font-size: 0.8rem; color: var(--text-muted); }
|
||||||
.gear-guide-order input { width: 4.5rem; }
|
.gear-guide-order input { width: 4.5rem; }
|
||||||
|
.gear-guide-order + .gear-guide-order { margin-left: 0; }
|
||||||
.gear-guide-key-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
|
.gear-guide-key-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
|
||||||
.gear-guide-key-row textarea { min-height: 2.4rem; }
|
.gear-guide-key-row textarea { min-height: 2.4rem; }
|
||||||
/* Skills in Guide-Texten ([[Skillname]], includes/gear_guide.php): wie ein Link im Fliesstext - kleines Icon und Name in
|
/* Skills in Guide-Texten ([[Skillname]], includes/gear_guide.php): wie ein Link im Fliesstext - kleines Icon und Name in
|
||||||
|
|
@ -6835,7 +6841,6 @@ button.gear-guide-skill:hover { border-color: var(--gold); transform: translateY
|
||||||
.gear-tip-part-no { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; background: rgba(160, 120, 230, 0.25); color: #e1d0ff; font-size: 0.72rem; }
|
.gear-tip-part-no { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 4px; background: rgba(160, 120, 230, 0.25); color: #e1d0ff; font-size: 0.72rem; }
|
||||||
.gear-tip-part-level { flex: none; width: 2.6rem; font-size: 0.7rem; }
|
.gear-tip-part-level { flex: none; width: 2.6rem; font-size: 0.7rem; }
|
||||||
.gear-tip-part.is-hl { border-color: rgba(201, 162, 39, 0.6); background: rgba(201, 162, 39, 0.12); color: var(--text); }
|
.gear-tip-part.is-hl { border-color: rgba(201, 162, 39, 0.6); background: rgba(201, 162, 39, 0.12); color: var(--text); }
|
||||||
.gear-guide-order + .gear-guide-order { margin-left: 0; }
|
|
||||||
.gear-guide-chip-hint code { padding: 0.05rem 0.3rem; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
|
.gear-guide-chip-hint code { padding: 0.05rem 0.3rem; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
|
||||||
.gear-guide-stats { margin-bottom: 1rem; }
|
.gear-guide-stats { margin-bottom: 1rem; }
|
||||||
.gear-guide-stat-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
|
.gear-guide-stat-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
|
||||||
|
|
@ -6892,15 +6897,15 @@ button.gear-guide-skill:hover { border-color: var(--gold); transform: translateY
|
||||||
.gear-guide-dv-total { border-top: 1px solid var(--border); padding-top: 0.6rem; }
|
.gear-guide-dv-total { border-top: 1px solid var(--border); padding-top: 0.6rem; }
|
||||||
.gear-guide-dv-total summary { cursor: pointer; color: var(--text-muted); font-size: 0.88rem; }
|
.gear-guide-dv-total summary { cursor: pointer; color: var(--text-muted); font-size: 0.88rem; }
|
||||||
.gear-guide-dv-total[open] summary { margin-bottom: 0.4rem; }
|
.gear-guide-dv-total[open] summary { margin-bottom: 0.4rem; }
|
||||||
|
@media (max-width: 900px) {
|
||||||
|
.gear-guide-dv-pane { grid-template-columns: minmax(0, 1fr); }
|
||||||
|
.gear-guide-dv-board { width: min(100%, 600px); justify-self: center; }
|
||||||
|
}
|
||||||
.gear-guide-dv-columns .gear-skills-kind { margin: 0.5rem 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
|
.gear-guide-dv-columns .gear-skills-kind { margin: 0.5rem 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
|
||||||
.gear-guide-gear-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
|
.gear-guide-gear-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
|
||||||
.gear-guide-gear-stat { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(0, 0, 0, 0.22); min-width: 0; }
|
.gear-guide-gear-stat { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.6rem 0.7rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(0, 0, 0, 0.22); min-width: 0; }
|
||||||
.gear-guide-gear-stat-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
.gear-guide-gear-stat-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
||||||
.gear-guide-gear-stat strong { font-size: 1.2rem; white-space: nowrap; line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; }
|
.gear-guide-gear-stat strong { font-size: 1.2rem; white-space: nowrap; line-height: 1.1; color: var(--gold); font-variant-numeric: tabular-nums; }
|
||||||
@media (max-width: 900px) {
|
|
||||||
.gear-guide-dv-pane { grid-template-columns: minmax(0, 1fr); }
|
|
||||||
.gear-guide-dv-board { width: min(100%, 600px); justify-self: center; }
|
|
||||||
}
|
|
||||||
.gear-guide-gear-stat small { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
|
.gear-guide-gear-stat small { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; }
|
||||||
.gear-guide-gear-bar { display: block; height: 4px; margin-top: 0.2rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
|
.gear-guide-gear-bar { display: block; height: 4px; margin-top: 0.2rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
|
||||||
.gear-guide-gear-bar i { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
|
.gear-guide-gear-bar i { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
|
||||||
|
|
|
||||||
15
premades.php
15
premades.php
|
|
@ -71,7 +71,13 @@ $namesByDiscordId = [];
|
||||||
$linkedUsersByDiscordId = [];
|
$linkedUsersByDiscordId = [];
|
||||||
if (!empty($allDiscordIds)) {
|
if (!empty($allDiscordIds)) {
|
||||||
$placeholders = implode(',', array_fill(0, count($allDiscordIds), '?'));
|
$placeholders = implode(',', array_fill(0, count($allDiscordIds), '?'));
|
||||||
$stmt = db()->prepare("SELECT id, discord_id, username, discord_username, display_name, avatar_filename, class_name FROM users WHERE discord_id IN ($placeholders)");
|
// profile_link: Profilseite verlinken - nur aktive Konten, Mitglieder verbuendeter Legionen nur fuer die, die sie sehen
|
||||||
|
require_once __DIR__ . '/includes/consilium.php';
|
||||||
|
$stmt = db()->prepare(
|
||||||
|
"SELECT id, discord_id, username, discord_username, display_name, avatar_filename, class_name,
|
||||||
|
status = 'active'" . (consilium_can_view() ? '' : ' AND NOT (' . sql_is_consilium_only('users') . ')') . " AS profile_link
|
||||||
|
FROM users WHERE discord_id IN ($placeholders)"
|
||||||
|
);
|
||||||
$stmt->execute($allDiscordIds);
|
$stmt->execute($allDiscordIds);
|
||||||
foreach ($stmt->fetchAll() as $row) {
|
foreach ($stmt->fetchAll() as $row) {
|
||||||
$name = $row['display_name'] !== '' ? $row['display_name'] : $row['discord_username'];
|
$name = $row['display_name'] !== '' ? $row['display_name'] : $row['discord_username'];
|
||||||
|
|
@ -503,6 +509,12 @@ include __DIR__ . '/includes/header.php';
|
||||||
<div class="<?= $slotClass ?>"<?= $slotData ?>>
|
<div class="<?= $slotClass ?>"<?= $slotData ?>>
|
||||||
<div class="premade-slot-inner">
|
<div class="premade-slot-inner">
|
||||||
<?= $reserveTag ?>
|
<?= $reserveTag ?>
|
||||||
|
<?php
|
||||||
|
// Avatar und Name fuehren zur Profilseite (im Bearbeiten-Modus nicht - dort wird gezogen)
|
||||||
|
$slotProfile = !empty($linkedUsersByDiscordId[(int) $slot['id']]['profile_link'])
|
||||||
|
? '/member.php?id=' . (int) $linkedUsersByDiscordId[(int) $slot['id']]['id'] : null;
|
||||||
|
?>
|
||||||
|
<?php if ($slotProfile): ?><a class="premade-slot-profile" href="<?= e($slotProfile) ?>" draggable="false" title="Profil von <?= e($slot['name']) ?> ansehen"><?php endif; ?>
|
||||||
<?= avatar_html($slotUser, 40) ?>
|
<?= avatar_html($slotUser, 40) ?>
|
||||||
<div class="premade-slot-name">
|
<div class="premade-slot-name">
|
||||||
<strong><?= $isPending ? '⏳ ' : '' ?><?= e($slot['name']) ?></strong>
|
<strong><?= $isPending ? '⏳ ' : '' ?><?= e($slot['name']) ?></strong>
|
||||||
|
|
@ -520,6 +532,7 @@ include __DIR__ . '/includes/header.php';
|
||||||
<span class="text-muted">Keine Klasse gewählt</span>
|
<span class="text-muted">Keine Klasse gewählt</span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
<?php if ($slotProfile): ?></a><?php endif; ?>
|
||||||
<?php if ($isMe && !$isPending): ?>
|
<?php if ($isMe && !$isPending): ?>
|
||||||
<button type="button" class="icon-button premade-class-switch" data-premade-id="<?= $premadeId ?>" data-current-class="<?= e((string) ($slot['class'] ?? '')) ?>" title="<?= !empty($slot['class']) ? 'Klasse wechseln' : 'Klasse wählen' ?>" aria-label="<?= !empty($slot['class']) ? 'Klasse wechseln' : 'Klasse wählen' ?>"><?= icon('swap') ?></button>
|
<button type="button" class="icon-button premade-class-switch" data-premade-id="<?= $premadeId ?>" data-current-class="<?= e((string) ($slot['class'] ?? '')) ?>" title="<?= !empty($slot['class']) ? 'Klasse wechseln' : 'Klasse wählen' ?>" aria-label="<?= !empty($slot['class']) ? 'Klasse wechseln' : 'Klasse wählen' ?>"><?= icon('swap') ?></button>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue