Files
fusion/packages/dashboard/app/components/WorkspaceSelector.css
gsxdsm 9e03c47b91 feat(KB-175): move file browser to header with workspace support
- Add workspace file APIs and hooks for session-scoped file browsing
- Create WorkspaceSelector component for switching between workspaces
- Update FileBrowserModal with workspace mode and improved UX
- Add files button to header with workspace-aware file browsing
- Add session files indicator to task cards for quick file access
- Include comprehensive tests for all new components and hooks
2026-03-31 01:26:57 -07:00

112 lines
2.1 KiB
CSS

.workspace-selector {
position: relative;
}
.workspace-selector-trigger {
display: inline-flex;
align-items: center;
gap: 8px;
min-width: 180px;
max-width: 280px;
padding: 6px 10px;
border-radius: var(--radius-md);
border: 1px solid var(--border);
background: var(--surface);
color: var(--text);
font-size: 12px;
cursor: pointer;
}
.workspace-selector-trigger:hover {
background: var(--card-hover);
}
.workspace-selector-trigger-label {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
}
.workspace-selector-trigger-icon {
flex-shrink: 0;
transition: transform var(--transition-fast);
}
.workspace-selector-trigger-icon.open {
transform: rotate(180deg);
}
.workspace-selector-menu {
position: absolute;
top: calc(100% + 8px);
left: 0;
z-index: 20;
min-width: 300px;
max-width: 360px;
padding: 8px;
border: 1px solid var(--border);
border-radius: var(--radius-lg);
background: var(--surface-elevated, var(--surface));
box-shadow: var(--shadow-lg);
}
.workspace-selector-group {
margin-top: 8px;
padding-top: 8px;
border-top: 1px solid var(--border);
}
.workspace-selector-group-label {
padding: 4px 8px 8px;
font-size: 11px;
font-weight: 600;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.workspace-selector-option {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 8px;
border: none;
border-radius: var(--radius-md);
background: transparent;
color: var(--text);
cursor: pointer;
text-align: left;
}
.workspace-selector-option:hover {
background: var(--card-hover);
}
.workspace-selector-option.active {
background: rgba(88, 166, 255, 0.12);
}
.workspace-selector-option-main {
display: inline-flex;
align-items: center;
gap: 8px;
min-width: 0;
font-size: 12px;
font-weight: 500;
}
.workspace-selector-option-meta {
min-width: 0;
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 11px;
color: var(--text-muted);
}