From 67d50910937695f279b8b307887ea7cda1ada8e8 Mon Sep 17 00:00:00 2001 From: Yinyin Liu Date: Tue, 2 Jun 2026 13:43:52 +0200 Subject: [PATCH] dynamic window size of user list --- .../dashboards/Users/FlatUsersView.tsx | 22 +++++++++++++------ 1 file changed, 15 insertions(+), 7 deletions(-) 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 && ( + - )} - + + )} ); };