diff --git a/spiffworkflow-frontend/src/components/InstructionsForEndUser.tsx b/spiffworkflow-frontend/src/components/InstructionsForEndUser.tsx index ef4e243b..52a7102d 100644 --- a/spiffworkflow-frontend/src/components/InstructionsForEndUser.tsx +++ b/spiffworkflow-frontend/src/components/InstructionsForEndUser.tsx @@ -73,29 +73,20 @@ export default function InstructionsForEndUser({ return null; }; - let instructionsShown = instructions; + let className = 'markdown'; if (collapsed) { - if (wordCount(instructions) > maxWordCount) { - instructionsShown = instructions - .split(' ') - .slice(0, maxWordCount) - .join(' '); - instructionsShown += '...'; - } else if (lineCount(instructions) > maxLineCount) { - instructionsShown = instructions.split('\n').slice(0, 5).join(' '); - instructionsShown += '...'; - } + className += ' markdown-collapsed'; } return (
-
+
{/* https://www.npmjs.com/package/@uiw/react-md-editor switches to dark mode by default by respecting @media (prefers-color-scheme: dark) This makes it look like our site is broken, so until the rest of the site supports dark mode, turn off dark mode for this component. */}
- +
{showCollapseToggle()} diff --git a/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx b/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx index 4a3f471e..a6809240 100644 --- a/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx +++ b/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx @@ -1195,7 +1195,7 @@ export default function ProcessInstanceListTable({ ); }); return ( - + {tags}