From 6a32e5174ed10333c3efc55e28fd14d90f99574a Mon Sep 17 00:00:00 2001 From: burnettk Date: Fri, 25 Nov 2022 10:56:44 -0500 Subject: [PATCH] heading for instances on model show page, move instances below files, add margins --- spiffworkflow-frontend/src/index.css | 9 +++++++++ .../src/routes/GroupedTasks.tsx | 3 ++- .../src/routes/ProcessModelShow.tsx | 19 ++++++++++++------- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/spiffworkflow-frontend/src/index.css b/spiffworkflow-frontend/src/index.css index 9564d300..246c3e44 100644 --- a/spiffworkflow-frontend/src/index.css +++ b/spiffworkflow-frontend/src/index.css @@ -147,6 +147,10 @@ h1.with-icons { margin-bottom: 1em; } +.with-top-margin { + margin-top: 1em; +} + .with-large-bottom-margin { margin-bottom: 3em; } @@ -283,3 +287,8 @@ td.actions-cell { color: #525252; margin-bottom: 1em; } + +/* top and bottom margin since this is sort of the middle of three sections on the process model show page */ +.process-model-files-section { + margin: 2em 0; +} diff --git a/spiffworkflow-frontend/src/routes/GroupedTasks.tsx b/spiffworkflow-frontend/src/routes/GroupedTasks.tsx index b72ccfb9..9fe0d3a5 100644 --- a/spiffworkflow-frontend/src/routes/GroupedTasks.tsx +++ b/spiffworkflow-frontend/src/routes/GroupedTasks.tsx @@ -5,7 +5,8 @@ import TasksWaitingForMyGroups from '../components/TasksWaitingForMyGroups'; export default function GroupedTasks() { return ( <> - {/* be careful moving these around since the first two have with-large-bottom-margin in order to get some space between the three table sections */} + {/* be careful moving these around since the first two have with-large-bottom-margin in order to get some space between the three table sections. */} + {/* i wish Stack worked to add space just between top-level elements */} diff --git a/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx b/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx index 863aeb65..2882e183 100644 --- a/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx +++ b/spiffworkflow-frontend/src/routes/ProcessModelShow.tsx @@ -91,7 +91,7 @@ export default function ProcessModelShow() { const processInstanceRunResultTag = () => { if (processInstance) { return ( -
+

Process Instance {processInstance.id} kicked off ( { + const processModelFilesSection = () => { if (!processModel) { return null; } return ( - + { if (processModel) { return ( - + + +

Process Instances

+ {processInstanceRunResultTag()} + {processModelFilesSection()} {processInstanceListTableButton()} -
-
- {processModelButtons()} ); }