Branding: bulk rename across 50+ files (Go, JS, CSS, HTML, YAML, JSON, shell scripts). Fix Helm chart description and git repo URLs. Fix test helper taglines. Admin surface: strip 14 gutted tabs (providers, models, personas, roles, knowledge, memory, tasks, health, routing, capabilities, channels, dashboard, usage, stats). Collapse to 4 categories: People, Workflows, System, Monitoring. Settings surface: strip 11 gutted tabs (models, personas, providers, roles, knowledge, memory, usage, workflows, tasks, data, gitkeys). Keep: general, appearance, profile, teams, connections, notifications. Team-admin surface: strip 5 gutted tabs (personas, providers, knowledge, tasks, usage). Keep: members, groups, connections, workflows, settings, activity. Components: delete chat-pane/ (13 files, 1938 lines) and notes-pane/ (10 files, 2381 lines). main.go: remove stale Health.Prune maintenance goroutine. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
113 lines
2.9 KiB
CSS
113 lines
2.9 KiB
CSS
/* ==========================================
|
|
Switchboard Core — UserMenu Component CSS
|
|
==========================================
|
|
v0.31.1: Flyout container + item styles moved to primitives.css
|
|
(.sw-menu-flyout). This file keeps only the trigger button,
|
|
avatar, and sidebar-specific direction overrides.
|
|
========================================== */
|
|
|
|
/* ── Wrapper ───────────────────────────────── */
|
|
|
|
.user-menu-wrap {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
/* ── Trigger Button ────────────────────────── */
|
|
|
|
.user-menu-wrap .user-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 8px;
|
|
border-radius: var(--radius, 6px);
|
|
background: none;
|
|
border: none;
|
|
color: var(--text, #eee);
|
|
cursor: pointer;
|
|
width: 100%;
|
|
font-family: inherit;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.user-menu-wrap .user-btn:hover {
|
|
background: var(--bg-hover, rgba(255,255,255,0.06));
|
|
}
|
|
|
|
/* ── Avatar ────────────────────────────────── */
|
|
|
|
.user-menu-wrap .user-avatar {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 50%;
|
|
background: var(--accent-dim, rgba(179, 138, 78, 0.2));
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--accent, #b38a4e);
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.user-menu-wrap .user-avatar-img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.user-menu-wrap .sb-label {
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* ── Sidebar overrides ───────────────────── */
|
|
/* In sidebar context, flyout pops UP instead of down and uses upward shadow */
|
|
|
|
.sidebar .user-menu-wrap .sw-menu-flyout {
|
|
box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
/* Sidebar collapsed: hide label, center avatar */
|
|
.sidebar.collapsed .user-menu-wrap .user-btn {
|
|
justify-content: center;
|
|
padding: 6px 0;
|
|
gap: 0;
|
|
}
|
|
|
|
.sidebar.collapsed .user-menu-wrap .sb-label {
|
|
display: none;
|
|
}
|
|
|
|
.sidebar.collapsed .user-menu-wrap .sw-menu-flyout {
|
|
position: fixed;
|
|
left: var(--sidebar-rail);
|
|
bottom: 8px;
|
|
top: auto;
|
|
right: auto;
|
|
width: 200px;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
/* ── Responsive: Mobile ───────────────────── */
|
|
|
|
@media (max-width: 768px) {
|
|
/* User menu button: ensure 44px touch target */
|
|
.user-menu-wrap .user-btn {
|
|
padding: 8px;
|
|
min-height: 44px;
|
|
}
|
|
|
|
/* Flyout: open upward and constrain width */
|
|
.user-menu-wrap .sw-menu-flyout {
|
|
max-width: calc(100vw - 16px);
|
|
}
|
|
}
|