mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-13 03:28:03 +00:00
opt: adjust msgbox text width, passwordDialog support enter && esc
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -642,7 +642,9 @@ void msgBox(
|
||||
}
|
||||
dialogManager.show((setState, close) => CustomAlertDialog(
|
||||
title: _msgBoxTitle(title),
|
||||
content: Text(translate(text), style: const TextStyle(fontSize: 15)),
|
||||
content: ConstrainedBox(
|
||||
constraints: BoxConstraints(maxWidth: 500),
|
||||
child: Text(translate(text), style: const TextStyle(fontSize: 15))),
|
||||
actions: buttons,
|
||||
onSubmit: hasOk ? submit : null,
|
||||
onCancel: hasCancel == true ? cancel : null,
|
||||
|
||||
Reference in New Issue
Block a user