- Add TodoModal component and styling, and mount it through AppModals - Remove dedicated Todos view routing and drive todos access through modal state/actions - Update Header and MobileNavBar interactions plus modal manager/view-state hooks for modal flow - Expand dashboard tests to cover modal rendering, open/close behavior, and updated app/header expectations Fusion-Task-Id: FN-3104
65 lines
1.2 KiB
CSS
65 lines
1.2 KiB
CSS
.modal.todo-modal {
|
|
width: 80vw;
|
|
max-width: calc(var(--space-xl) * 37.5);
|
|
height: 75vh;
|
|
min-height: calc(var(--space-xs) * 100);
|
|
max-height: calc(100dvh - var(--overlay-padding-top, 10vh) - var(--space-lg));
|
|
overflow: hidden;
|
|
resize: both;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.todo-modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-lg);
|
|
}
|
|
|
|
.todo-modal-header-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.todo-modal-header-title h2 {
|
|
margin: 0;
|
|
font-size: calc(var(--space-md) + var(--space-xs) * 0.75);
|
|
}
|
|
|
|
.todo-modal-header-title p {
|
|
margin: 0;
|
|
color: var(--text-muted);
|
|
font-size: calc(var(--space-md) - var(--space-xs) * 0.25);
|
|
}
|
|
|
|
.todo-modal-body {
|
|
flex: 1;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.modal-overlay:has(.todo-modal) {
|
|
padding-top: 0;
|
|
align-items: stretch;
|
|
justify-content: stretch;
|
|
}
|
|
|
|
.modal.todo-modal {
|
|
width: 100vw;
|
|
min-width: 0;
|
|
height: 100dvh;
|
|
min-height: 0;
|
|
max-width: 100vw;
|
|
max-height: 100dvh;
|
|
margin: 0;
|
|
border: none;
|
|
border-radius: 0;
|
|
resize: none;
|
|
}
|
|
}
|