Merge pull request #1562 from Runfusion/feature/mobile-workflow
feat: redesign mobile workflow editor
This commit is contained in:
@@ -545,6 +545,52 @@
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.wf-mobile-shell {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wf-layout-toggle {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-xs);
|
||||
width: fit-content;
|
||||
min-height: 30px;
|
||||
padding: var(--space-xs) var(--space-sm);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--bg-secondary);
|
||||
color: var(--text-muted);
|
||||
font: inherit;
|
||||
font-size: 0.8rem;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wf-layout-toggle:hover {
|
||||
background: var(--bg-tertiary);
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.wf-layout-toggle:focus-visible {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
.wf-editor-body--simple-layout :where(.wf-editor-readonly-banner),
|
||||
.wf-editor-body--simple-layout :where(.wf-editor-toolbar),
|
||||
.wf-editor-body--simple-layout :where(.wf-templates),
|
||||
.wf-editor-body--simple-layout :where(.wf-editor-canvas) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wf-editor-body--simple-layout .wf-mobile-shell {
|
||||
display: flex;
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
flex-direction: column;
|
||||
border-top: 1px solid var(--border);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.wf-editor-inspector {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -1327,6 +1373,122 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.wf-editor-body--editor-stage :where(.wf-editor-readonly-banner),
|
||||
.wf-editor-body--editor-stage :where(.wf-editor-toolbar),
|
||||
.wf-editor-body--editor-stage :where(.wf-templates),
|
||||
.wf-editor-body--editor-stage :where(.wf-editor-canvas) {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.wf-mobile-shell {
|
||||
display: flex;
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
flex-direction: column;
|
||||
border-top: 1px solid var(--border);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.wf-mobile-tabs {
|
||||
display: flex;
|
||||
gap: var(--space-xs);
|
||||
padding: var(--space-sm);
|
||||
overflow-x: auto;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.wf-mobile-tab {
|
||||
flex: 0 0 auto;
|
||||
min-height: var(--wf-editor-touch-target);
|
||||
padding: var(--space-sm) var(--space-md);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--bg-secondary);
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.wf-mobile-tab--active {
|
||||
border-color: var(--accent, var(--ws-info));
|
||||
background: var(--bg-tertiary);
|
||||
}
|
||||
|
||||
.wf-mobile-panel {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.wf-mobile-add,
|
||||
.wf-mobile-actions,
|
||||
.wf-mobile-destination {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-sm);
|
||||
padding: var(--space-sm);
|
||||
}
|
||||
|
||||
.wf-mobile-add-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-sm);
|
||||
}
|
||||
|
||||
.wf-mobile-add-section h3,
|
||||
.wf-mobile-template-group h4 {
|
||||
margin: 0;
|
||||
color: var(--text);
|
||||
font-size: 0.85rem;
|
||||
}
|
||||
|
||||
.wf-mobile-add-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: var(--space-xs);
|
||||
}
|
||||
|
||||
.wf-mobile-add-option,
|
||||
.wf-mobile-template-option {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
gap: var(--space-xs);
|
||||
min-width: 0;
|
||||
min-height: var(--wf-editor-touch-target);
|
||||
padding: var(--space-sm);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
background: var(--bg-secondary);
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
text-align: left;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.wf-mobile-template-filter {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.wf-mobile-template-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-xs);
|
||||
}
|
||||
|
||||
.wf-mobile-actions .wf-editor-action,
|
||||
.wf-mobile-actions .wf-editor-delete,
|
||||
.wf-mobile-actions .wf-editor-save {
|
||||
justify-content: center;
|
||||
min-height: var(--wf-editor-touch-target);
|
||||
}
|
||||
|
||||
.wf-mobile-ai-panel {
|
||||
position: static;
|
||||
inset: auto;
|
||||
width: 100%;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.wf-editor-canvas .react-flow,
|
||||
.wf-editor-canvas .react-flow__renderer,
|
||||
.wf-editor-canvas .react-flow__pane,
|
||||
|
||||
Reference in New Issue
Block a user