Refine crew column: names, Captain label, slide-out objectives
Follow-up tweaks to the scene dashboard: - Bubbles now show the human player name alongside the Pi-Rat name. - The Captain is named "Captain <name>" (the "Recruit" honorific swapped, or "Captain" prepended once Named) instead of a 🛞 icon — applied on bubbles and the character-sheet/duel headings via new crewLabel/ captainName helpers in lib/cards.js. - "Objectives" → "Crew Objectives" moved to the end of the roster as a left-aligned toggle with a right-aligned X/3 completed counter; it now slides the detailed list open in place (svelte/transition slide) instead of opening a modal. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -19,23 +19,6 @@
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.crew-objectives-btn {
|
||||
width: 100%;
|
||||
padding: 0.6rem 0.5rem;
|
||||
background: color-mix(in srgb, var(--accent) 14%, transparent);
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--text);
|
||||
font-family: var(--font-heading);
|
||||
font-size: 0.9rem;
|
||||
cursor: pointer;
|
||||
transition: var(--transition-smooth);
|
||||
}
|
||||
|
||||
.crew-objectives-btn:hover {
|
||||
background: color-mix(in srgb, var(--accent) 24%, transparent);
|
||||
}
|
||||
|
||||
.crew-bubbles {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -92,16 +75,63 @@
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* Crew Objectives toggle at the end of the roster */
|
||||
.crew-objectives-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 0.5rem;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
padding: 0.55rem 0.7rem;
|
||||
background: color-mix(in srgb, var(--accent) 12%, transparent);
|
||||
border: 1px solid var(--accent);
|
||||
border-radius: var(--radius-md);
|
||||
color: var(--text);
|
||||
font-family: var(--font-heading);
|
||||
font-size: 0.85rem;
|
||||
cursor: pointer;
|
||||
transition: var(--transition-smooth);
|
||||
}
|
||||
|
||||
.crew-objectives-toggle:hover {
|
||||
background: color-mix(in srgb, var(--accent) 22%, transparent);
|
||||
}
|
||||
|
||||
.crew-objectives-toggle .co-count {
|
||||
font-weight: 700;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.crew-objectives-detail {
|
||||
padding: 0.6rem 0.7rem;
|
||||
background: var(--well);
|
||||
border: 1px solid var(--edge);
|
||||
border-radius: var(--radius-md);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.35rem;
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
/* On narrow screens the crew column becomes a horizontal strip above the board */
|
||||
@media (max-width: 1100px) {
|
||||
.crew-bubbles {
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.crew-bubble {
|
||||
width: auto;
|
||||
flex: 1 1 140px;
|
||||
}
|
||||
.crew-objectives-toggle {
|
||||
width: auto;
|
||||
flex: 1 1 100%;
|
||||
}
|
||||
.crew-objectives-detail {
|
||||
flex: 1 1 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.card-header {
|
||||
|
||||
Reference in New Issue
Block a user