This merge lands a comprehensive testing suite quality overhaul: new browser layout smoke tests, reverse-dependent test coverage, hardened local test infrastructure, and documentation of the agent test workflow, alongside a mobile keyboard-safe TodoView layout fix. Fusion-Task-Id: FN-3702
464 lines
9.3 KiB
CSS
464 lines
9.3 KiB
CSS
/* === TodoView === */
|
|
.todo-view {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.todo-view-layout {
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
gap: var(--space-lg);
|
|
padding: var(--space-lg);
|
|
}
|
|
|
|
.todo-view-sidebar {
|
|
width: calc(var(--space-2xl) * 7 + var(--space-sm));
|
|
border-right: calc(var(--space-xs) / 4) solid var(--border);
|
|
padding-right: var(--space-lg);
|
|
overflow-y: auto;
|
|
flex-shrink: 0;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: color-mix(in srgb, var(--text-muted) 45%, transparent) transparent;
|
|
}
|
|
|
|
.todo-view-main {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: color-mix(in srgb, var(--text-muted) 45%, transparent) transparent;
|
|
}
|
|
|
|
.todo-view-sidebar::-webkit-scrollbar,
|
|
.todo-view-main::-webkit-scrollbar {
|
|
width: var(--space-sm);
|
|
height: var(--space-sm);
|
|
}
|
|
|
|
.todo-view-sidebar::-webkit-scrollbar-thumb,
|
|
.todo-view-main::-webkit-scrollbar-thumb {
|
|
background: color-mix(in srgb, var(--text-muted) 45%, transparent);
|
|
border-radius: var(--radius-pill);
|
|
}
|
|
|
|
.todo-view-sidebar::-webkit-scrollbar-track,
|
|
.todo-view-main::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.todo-sidebar-header {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: var(--space-md);
|
|
}
|
|
|
|
.todo-sidebar-title {
|
|
font-size: calc(var(--space-md) + (var(--space-xs) / 4));
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: calc(var(--space-xs) / 8);
|
|
margin: 0;
|
|
}
|
|
|
|
.todo-add-list-btn {
|
|
min-height: calc(var(--space-2xl) + var(--space-xs));
|
|
min-width: calc(var(--space-2xl) + var(--space-xs));
|
|
}
|
|
|
|
.todo-list-items {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.todo-list-item {
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
padding: var(--space-sm) var(--space-md);
|
|
border-radius: var(--radius-sm);
|
|
|
|
gap: var(--space-sm);
|
|
color: var(--text-muted);
|
|
transition: background var(--transition-fast), color var(--transition-fast);
|
|
}
|
|
|
|
.todo-list-item:hover {
|
|
background: var(--card-hover);
|
|
color: var(--text);
|
|
}
|
|
|
|
.todo-list-select-btn {
|
|
flex: 1;
|
|
min-width: 0;
|
|
border: 0;
|
|
background: none;
|
|
color: inherit;
|
|
text-align: left;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
}
|
|
|
|
.todo-list-select-btn:focus-visible {
|
|
outline: none;
|
|
border-radius: var(--radius-sm);
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.todo-list-item--active {
|
|
background: var(--surface);
|
|
color: var(--text);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.todo-list-item-name {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-size: calc(var(--space-md) + (var(--space-xs) / 4));
|
|
}
|
|
|
|
.todo-list-item-actions {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: var(--space-xs);
|
|
opacity: 0;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.todo-list-item:hover .todo-list-item-actions,
|
|
.todo-list-item:focus-within .todo-list-item-actions,
|
|
.todo-list-item--active .todo-list-item-actions {
|
|
opacity: 1;
|
|
}
|
|
|
|
.todo-icon-btn {
|
|
min-height: calc(var(--space-lg) + var(--space-sm));
|
|
min-width: calc(var(--space-lg) + var(--space-sm));
|
|
}
|
|
|
|
.todo-inline-edit-input {
|
|
flex: 1;
|
|
font-size: calc(var(--space-md) + (var(--space-xs) / 4));
|
|
}
|
|
|
|
.todo-items-header {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: var(--space-md);
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.todo-items-header h3 {
|
|
margin: 0;
|
|
font-size: calc(var(--space-md) + (var(--space-xs) / 2));
|
|
font-weight: 500;
|
|
color: var(--text);
|
|
}
|
|
|
|
.todo-add-item-row {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: var(--space-sm);
|
|
margin-bottom: var(--space-lg);
|
|
}
|
|
|
|
.todo-add-item-row .input {
|
|
flex: 1;
|
|
}
|
|
|
|
.todo-items-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.todo-item {
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
padding: var(--space-sm) var(--space-md);
|
|
border-radius: var(--radius-sm);
|
|
gap: var(--space-sm);
|
|
border-bottom: calc(var(--space-xs) / 4) solid var(--border);
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
.todo-item:hover {
|
|
background: var(--card-hover);
|
|
}
|
|
|
|
.todo-item-main-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: var(--space-sm);
|
|
min-width: 0;
|
|
}
|
|
|
|
.todo-item-checkbox {
|
|
margin: 0;
|
|
width: var(--space-lg);
|
|
height: var(--space-lg);
|
|
accent-color: var(--todo);
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.todo-item-text {
|
|
flex: 1;
|
|
font-size: calc(var(--space-md) + (var(--space-xs) / 4));
|
|
color: var(--text);
|
|
cursor: pointer;
|
|
word-break: break-word;
|
|
background: none;
|
|
border: 0;
|
|
padding: 0;
|
|
text-align: left;
|
|
}
|
|
|
|
.todo-item-text:focus-visible {
|
|
outline: none;
|
|
border-radius: var(--radius-sm);
|
|
box-shadow: var(--focus-ring-strong);
|
|
}
|
|
|
|
.todo-item-text--completed {
|
|
text-decoration: line-through;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.todo-item-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
opacity: 1;
|
|
transition: opacity var(--transition-fast);
|
|
margin-left: calc(var(--space-lg) + var(--space-sm));
|
|
}
|
|
|
|
.todo-item-reorder-btns {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 0;
|
|
}
|
|
|
|
.todo-item-reorder-btn {
|
|
min-height: var(--space-xl);
|
|
min-width: var(--space-xl);
|
|
}
|
|
|
|
.todo-agent-picker-trigger {
|
|
position: relative;
|
|
}
|
|
|
|
.todo-agent-picker-dropdown {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 100%;
|
|
z-index: 50;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-xs);
|
|
margin-top: var(--space-xs);
|
|
min-width: calc(var(--space-2xl) * 6 + var(--space-md));
|
|
max-height: calc(var(--space-2xl) * 7 + var(--space-md));
|
|
overflow-y: auto;
|
|
padding: var(--space-xs);
|
|
border: calc(var(--space-xs) / 4) solid var(--border);
|
|
border-radius: var(--radius-md);
|
|
background: var(--surface);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.todo-agent-picker-item {
|
|
width: 100%;
|
|
border: 0;
|
|
border-radius: var(--radius-sm);
|
|
background: transparent;
|
|
color: var(--text);
|
|
padding: var(--space-sm);
|
|
display: grid;
|
|
grid-template-columns: auto 1fr auto;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
text-align: left;
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
.todo-agent-picker-item:hover {
|
|
background: var(--card-hover);
|
|
}
|
|
|
|
.todo-agent-picker-item:focus-visible {
|
|
outline: none;
|
|
box-shadow: var(--focus-ring-strong);
|
|
}
|
|
|
|
.todo-agent-picker-role {
|
|
color: var(--text-muted);
|
|
font-size: calc(var(--space-md) - (var(--space-xs) / 4));
|
|
text-transform: uppercase;
|
|
letter-spacing: calc(var(--space-xs) / 8);
|
|
}
|
|
|
|
.todo-agent-picker-loading,
|
|
.todo-agent-picker-empty {
|
|
color: var(--text-muted);
|
|
padding: var(--space-sm);
|
|
font-size: calc(var(--space-md) + (var(--space-xs) / 8));
|
|
}
|
|
|
|
.todo-error-banner {
|
|
border: calc(var(--space-xs) / 4) solid color-mix(in srgb, var(--color-error) 35%, transparent);
|
|
background: color-mix(in srgb, var(--color-error) 10%, transparent);
|
|
color: var(--color-error);
|
|
border-radius: var(--radius-md);
|
|
padding: var(--space-md);
|
|
margin-bottom: var(--space-md);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.todo-error-message {
|
|
font-size: calc(var(--space-md) + (var(--space-xs) / 4));
|
|
}
|
|
|
|
.todo-empty-state,
|
|
.todo-loading {
|
|
color: var(--text-muted);
|
|
padding: var(--space-2xl);
|
|
text-align: center;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--space-sm);
|
|
flex: 1;
|
|
}
|
|
|
|
.todo-loading-icon {
|
|
animation: spin calc(var(--transition-slow) * 4) linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.todo-view {
|
|
padding: var(--space-md);
|
|
min-height: 0;
|
|
}
|
|
|
|
.todo-view-layout {
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
padding: 0;
|
|
}
|
|
|
|
.todo-view-sidebar {
|
|
width: 100%;
|
|
border-right: none;
|
|
border-bottom: calc(var(--space-xs) / 4) solid var(--border);
|
|
padding-right: 0;
|
|
padding-bottom: var(--space-md);
|
|
max-height: calc(var(--space-2xl) * 6 + var(--space-sm));
|
|
}
|
|
|
|
.todo-view-main {
|
|
width: 100%;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.todo-list-item,
|
|
.todo-list-select-btn,
|
|
.todo-add-list-btn,
|
|
.todo-icon-btn,
|
|
.todo-item,
|
|
.todo-item-reorder-btn,
|
|
.todo-add-item-row .btn {
|
|
min-height: calc(var(--space-2xl) + var(--space-xs));
|
|
}
|
|
|
|
.todo-add-item-row {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.todo-add-item-row .btn {
|
|
width: 100%;
|
|
}
|
|
|
|
.todo-list-item-actions,
|
|
.todo-item-actions {
|
|
opacity: 1;
|
|
}
|
|
|
|
.todo-item-main-row {
|
|
align-items: center;
|
|
}
|
|
|
|
.todo-item-actions {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.todo-item-checkbox {
|
|
width: calc(var(--space-2xl) + var(--space-xs));
|
|
height: calc(var(--space-2xl) + var(--space-xs));
|
|
}
|
|
|
|
.todo-agent-picker-trigger {
|
|
position: static;
|
|
}
|
|
|
|
.todo-agent-picker-dropdown {
|
|
left: 0;
|
|
right: 0;
|
|
min-width: 100%;
|
|
max-height: calc(var(--space-2xl) * 8);
|
|
}
|
|
|
|
.todo-agent-picker-item {
|
|
min-height: calc(var(--space-2xl) + var(--space-xs));
|
|
}
|
|
|
|
.todo-view--mobile-keyboard-active {
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.todo-view--mobile-keyboard-active .todo-view-layout {
|
|
height: 100%;
|
|
}
|
|
|
|
.todo-view--mobile-keyboard-active .todo-view-sidebar {
|
|
max-height: calc(var(--space-2xl) * 4);
|
|
}
|
|
|
|
.todo-view--mobile-keyboard-active .todo-view-main {
|
|
overscroll-behavior: contain;
|
|
}
|
|
}
|