feat: add active features indicator badges in header

Add visual badges in header showing which roleplay features are currently active:
- World Info: Shows count of enabled entries (e.g., "WI: 3")
- Persona: Shows persona name when enabled
- Preset: Shows active preset name
- Examples: Shows when message examples are enabled
- Author's Note: Shows when author's note is enabled (displays as "A/N")

Badges update dynamically when features are toggled, providing at-a-glance visibility of active roleplay features without opening the Roleplay Tools panel.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-16 22:26:39 -07:00
parent a7c9657ff1
commit 600b50f239
4 changed files with 3797 additions and 0 deletions

View File

@@ -172,6 +172,45 @@ body {
gap: 8px;
}
/* Feature Badges */
.feature-badges {
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
.feature-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 3px 8px;
background: rgba(99, 102, 241, 0.1);
border: 1px solid rgba(99, 102, 241, 0.3);
border-radius: 12px;
font-size: 11px;
font-weight: 500;
color: var(--accent);
white-space: nowrap;
transition: all 0.2s ease;
}
.feature-badge:hover {
background: rgba(99, 102, 241, 0.15);
border-color: rgba(99, 102, 241, 0.5);
}
.feature-badge-icon {
width: 10px;
height: 10px;
opacity: 0.8;
}
.feature-badge-count {
font-weight: 600;
color: var(--accent);
}
.icon-btn {
width: 28px;
height: 28px;