mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-09-08 02:37:45 +02:00
[eric] workflows: scheduling is a chat view (bounded height, composer docked) so it stops collapsing tiny
This commit is contained in:
@@ -133,7 +133,7 @@ export default function SchedulingView({ workflow, steps }: Props) {
|
||||
}, [pending, dispatch, workflow.id, workflow.updated_at]);
|
||||
|
||||
return (
|
||||
<Box sx={{ display: 'flex', flexDirection: 'column', gap: 1.25 }}>
|
||||
<Box sx={{ display: 'flex', flexDirection: 'column', gap: 1.25, minHeight: '100%' }}>
|
||||
{/* Inline header replacement. Image #49: subtitle on LEFT, Cancel
|
||||
on RIGHT. Cancel matches the subtitle's weight/size/color so the
|
||||
row reads as peers, not a heavy CTA; it just reddens on hover. */}
|
||||
@@ -160,6 +160,9 @@ export default function SchedulingView({ workflow, steps }: Props) {
|
||||
{error && (
|
||||
<Typography sx={{ fontSize: '0.82rem', color: c.status.error }}>{error}</Typography>
|
||||
)}
|
||||
{/* Spacer pushes the composer to the bottom of the card so the view
|
||||
reads like a normal chat (prompt up top, input docked below). */}
|
||||
<Box sx={{ flex: 1, minHeight: 40 }} />
|
||||
{/* Real ChatInput (same one the toolbar / agent chat use) so the
|
||||
composer matches Image #54 / #64 exactly: live model picker,
|
||||
mode picker, thinking level, paperclip + mic, the works. We
|
||||
|
||||
@@ -360,7 +360,11 @@ const WorkflowCard: React.FC<Props> = ({
|
||||
// every other view should size to its content so nothing is cut off and
|
||||
// there's no dead space below short content. While the user is actively
|
||||
// resizing, honor the dragged height.
|
||||
const isChatView = card?.view === 'edit_agent' || card?.view === 'fix_agent';
|
||||
// Chat views host a composer + conversation, so they keep a bounded height
|
||||
// (composer docked at the bottom, content scrolls) like a normal chat card.
|
||||
// Everything else fits to its content. Scheduling is a chat too (you talk to
|
||||
// it in natural language), so it belongs here, not in the fit-to-content set.
|
||||
const isChatView = card?.view === 'edit_agent' || card?.view === 'fix_agent' || card?.view === 'scheduling';
|
||||
const autoHeight = !isChatView && !localResize && !isResizing;
|
||||
const noTransition = isDragging || isResizing || (isSelected && !!multiDragDelta);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user