From 6d11fb915ed3ad3f5dead05fadcb40317b5832e6 Mon Sep 17 00:00:00 2001 From: Kevin Burnett <18027+burnettk@users.noreply.github.com> Date: Tue, 25 Jul 2023 10:25:11 -0700 Subject: [PATCH] make perspective dropdown bigger (#403) Co-authored-by: burnettk --- .../src/components/Filters.tsx | 2 +- .../components/ProcessInstanceListTable.tsx | 2 +- .../ProcessInstanceReportSearch.tsx | 48 ++++++++++--------- 3 files changed, 27 insertions(+), 25 deletions(-) diff --git a/spiffworkflow-frontend/src/components/Filters.tsx b/spiffworkflow-frontend/src/components/Filters.tsx index e6280a0f..abb45be1 100644 --- a/spiffworkflow-frontend/src/components/Filters.tsx +++ b/spiffworkflow-frontend/src/components/Filters.tsx @@ -30,7 +30,7 @@ export default function Filters({ let reportSearchSection = null; if (reportSearchComponent) { reportSearchSection = ( - + {reportSearchComponent()} ); diff --git a/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx b/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx index fb92540f..2581e7a4 100644 --- a/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx +++ b/spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx @@ -1702,7 +1702,7 @@ export default function ProcessInstanceListTable({ const reportSearchComponent = () => { if (showReports) { const columns = [ - + { - return `${truncateString(processInstanceReport.identifier, 20)} (Id: ${ - processInstanceReport.id - })`; + return `${processInstanceReport.identifier} (Id: ${processInstanceReport.id})`; }; const shouldFilterProcessInstanceReport = (options: any) => { @@ -70,24 +68,28 @@ export default function ProcessInstanceReportSearch({ if (reportsAvailable()) { return ( - - {titleText} - { - if (processInstanceReport) { - return reportSelectionString(processInstanceReport); - } - return null; - }} - shouldFilterItem={shouldFilterProcessInstanceReport} - placeholder="Choose a process instance perspective" - selectedItem={selectedItem} - /> - + + + {titleText} + + + { + if (processInstanceReport) { + return reportSelectionString(processInstanceReport); + } + return null; + }} + shouldFilterItem={shouldFilterProcessInstanceReport} + placeholder="Choose a process instance perspective" + selectedItem={selectedItem} + /> + + ); } return null;