Make Plan prompt editing surfaces span the task-detail layout consistently. - Scope a Plan prompt wrapper around markdown, empty, inline edit, and revision controls. - Let SpecEditor action rows and text inputs shrink and wrap within modal, embedded, and mobile layouts. - Cover full-width Plan prompt behavior with task-detail CSS and rendering tests. Files changed: .changeset/plan-prompt-full-width.md | 7 ++ packages/dashboard/app/components/SpecEditor.css | 27 ++++- .../dashboard/app/components/TaskDetailModal.css | 58 ++++++++- .../dashboard/app/components/TaskDetailModal.tsx | 13 +- .../TaskDetailModal.definition-actions.test.tsx | 134 ++++++++++++--------- ...etailModal.responsive-and-dependencies.test.tsx | 44 +++++++ 6 files changed, 219 insertions(+), 64 deletions(-) Fusion-Task-Id: FN-7349 Fusion-Task-Lineage: 65defcea-ce70-49fb-bd00-2127239e09d0 Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
241 lines
4.7 KiB
CSS
241 lines
4.7 KiB
CSS
/* === Spec Editor === */
|
|
.spec-editor {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
min-height: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Double-click to edit cursor - only when not readOnly */
|
|
.spec-editor:not(.spec-editor-readonly) .markdown-body {
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Toolbar - fixed at top */
|
|
.spec-editor-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 8px 0;
|
|
border-bottom: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.spec-editor-mode-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
}
|
|
|
|
.spec-editor-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
/* Actions row for Save/Cancel in Definition tab edit mode */
|
|
.spec-editor-actions-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-sm);
|
|
width: 100%;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
margin-top: var(--space-sm);
|
|
}
|
|
|
|
/*
|
|
FNXC:TaskDetailPlan 2026-06-30-00:00:
|
|
Inline Plan editing and AI revision controls share SpecEditor primitives, so these rows must shrink within task-detail modal and embedded cards instead of imposing a narrow or overflowing editor column.
|
|
*/
|
|
.spec-editor-edit-mode {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--space-sm);
|
|
width: 100%;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* Content area - flexible and scrollable */
|
|
.spec-editor-content {
|
|
flex: 1;
|
|
min-height: 0;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding: 12px 0;
|
|
}
|
|
|
|
/* Textarea - fills available space in edit mode */
|
|
.spec-editor-textarea {
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
min-height: 200px;
|
|
height: 100%;
|
|
flex: 1;
|
|
padding: var(--space-md);
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
color: var(--text);
|
|
font-family: var(--font-mono);
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
resize: none;
|
|
outline: none;
|
|
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
|
|
}
|
|
|
|
.spec-editor-textarea:focus {
|
|
border-color: var(--todo);
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.spec-editor-textarea:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Empty state */
|
|
.spec-editor-empty {
|
|
padding: var(--space-xl);
|
|
text-align: center;
|
|
color: var(--text-muted);
|
|
font-size: 13px;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Keyboard hint - stays above revision section */
|
|
.spec-editor-hint {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-xs);
|
|
padding: 8px 0;
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
border-top: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.spec-editor-hint kbd {
|
|
display: inline-block;
|
|
padding: 2px 6px;
|
|
background: var(--card);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius-sm);
|
|
font-size: 11px;
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
/* AI Revision section - fixed at bottom */
|
|
.spec-editor-revision {
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
padding: 16px 0;
|
|
border-top: 1px solid var(--border);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.spec-editor-revision h4 {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
margin: 0 0 4px 0;
|
|
color: var(--text);
|
|
}
|
|
|
|
.spec-editor-revision-help {
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
margin: 0 0 8px 0;
|
|
}
|
|
|
|
.spec-editor-feedback {
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
padding: 10px 12px;
|
|
background: var(--bg);
|
|
border: 1px solid var(--border);
|
|
border-radius: var(--radius);
|
|
color: var(--text);
|
|
font-family: inherit;
|
|
font-size: 13px;
|
|
line-height: 1.5;
|
|
resize: vertical;
|
|
outline: none;
|
|
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
|
|
}
|
|
|
|
.spec-editor-feedback:focus {
|
|
border-color: var(--todo);
|
|
box-shadow: var(--focus-ring);
|
|
}
|
|
|
|
.spec-editor-feedback:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.spec-editor-revision-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-sm);
|
|
width: 100%;
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
margin-top: var(--space-sm);
|
|
}
|
|
|
|
.spec-editor-char-count {
|
|
font-size: calc(var(--space-sm) + var(--space-xs) * 0.75);
|
|
color: var(--text-muted);
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
/* Mobile responsive */
|
|
@media (max-width: 768px) {
|
|
.spec-editor-content {
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.spec-editor-textarea {
|
|
min-height: 150px;
|
|
padding: 10px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.spec-editor-toolbar {
|
|
padding: 6px 0;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-sm);
|
|
}
|
|
|
|
.spec-editor-hint {
|
|
padding: 6px 0;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.spec-editor-revision {
|
|
padding: 12px 0;
|
|
}
|
|
|
|
.spec-editor-revision h4 {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.spec-editor-revision-help {
|
|
font-size: 11px;
|
|
}
|
|
}
|
|
|