From e590bb1e87db0d9360ada66b93d7c0b99f3b8f1c Mon Sep 17 00:00:00 2001 From: Tom Chapman Date: Fri, 5 Jul 2024 13:57:08 -0700 Subject: [PATCH] make title fit on screen --- .../form/EngagementWidgets/Documents/DocumentFile.tsx | 10 +++++++++- .../EngagementWidgets/Documents/StyledTreeItem.tsx | 5 ++++- .../form/EngagementWidgets/Documents/TreeView.tsx | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/met-web/src/components/engagement/form/EngagementWidgets/Documents/DocumentFile.tsx b/met-web/src/components/engagement/form/EngagementWidgets/Documents/DocumentFile.tsx index 92b95eef5..731623ab4 100644 --- a/met-web/src/components/engagement/form/EngagementWidgets/Documents/DocumentFile.tsx +++ b/met-web/src/components/engagement/form/EngagementWidgets/Documents/DocumentFile.tsx @@ -57,7 +57,15 @@ const DocumentFile = ({ {documentItem.is_uploaded ? : } - {documentItem.title} + + {documentItem.title} + diff --git a/met-web/src/components/engagement/form/EngagementWidgets/Documents/StyledTreeItem.tsx b/met-web/src/components/engagement/form/EngagementWidgets/Documents/StyledTreeItem.tsx index 5a3f9ff65..ad1d27454 100644 --- a/met-web/src/components/engagement/form/EngagementWidgets/Documents/StyledTreeItem.tsx +++ b/met-web/src/components/engagement/form/EngagementWidgets/Documents/StyledTreeItem.tsx @@ -77,8 +77,11 @@ export function StyledTreeItem(props: StyledTreeItemProps & DocumentTreeItemProp } defaultExpandIcon={} defaultEndIcon={
} - sx={{ flexGrow: 1, maxWidth: 400, overflowY: 'auto' }} + sx={{ flexGrow: 1, maxWidth: 1000, overflowY: 'auto' }} >