From 3242d132f6cee7cb5dfecb8f6db3e8b0e4634366 Mon Sep 17 00:00:00 2001 From: 21pages Date: Mon, 27 Oct 2025 16:51:30 +0800 Subject: [PATCH] opt ui of Windows session dialog (#13303) Signed-off-by: 21pages --- flutter/lib/common/widgets/dialog.dart | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/flutter/lib/common/widgets/dialog.dart b/flutter/lib/common/widgets/dialog.dart index b8aed9791..4fac95c6c 100644 --- a/flutter/lib/common/widgets/dialog.dart +++ b/flutter/lib/common/widgets/dialog.dart @@ -2121,15 +2121,20 @@ void showWindowsSessionsDialog( return CustomAlertDialog( title: null, - content: msgboxContent(type, title, text), + content: Column( + mainAxisSize: MainAxisSize.min, + children: [ + msgboxContent(type, title, text).marginOnly(bottom: 12), + ComboBox( + keys: sids, + values: names, + initialKey: selectedUserValue, + onChanged: (value) { + selectedUserValue = value; + }), + ], + ), actions: [ - ComboBox( - keys: sids, - values: names, - initialKey: selectedUserValue, - onChanged: (value) { - selectedUserValue = value; - }), dialogButton('Connect', onPressed: submit, isOutline: false), ], );