diff --git a/typescript/frontend-marios2/src/content/dashboards/Users/FlatUsersView.tsx b/typescript/frontend-marios2/src/content/dashboards/Users/FlatUsersView.tsx index 77ddd612e..e97648e69 100644 --- a/typescript/frontend-marios2/src/content/dashboards/Users/FlatUsersView.tsx +++ b/typescript/frontend-marios2/src/content/dashboards/Users/FlatUsersView.tsx @@ -48,12 +48,20 @@ const FlatUsersView = (props: FlatUsersViewProps) => { const isMobile = window.innerWidth <= 1490; + // Only show the detail pane once a real user is picked; until then let the + // list span the full width so long emails aren't clipped by a reserved-but- + // empty pane. + const selectedUserObj = findUser(selectedUser); + const hasSelection = selectedUser !== -1 && selectedUserObj !== undefined; + return ( - + - + @@ -114,14 +122,14 @@ const FlatUsersView = (props: FlatUsersViewProps) => { - - {selectedUser && ( + {hasSelection && ( + - )} - + + )} ); };