partially fix issue #2747: text selectable, more top margin of buttons

on dialog
This commit is contained in:
rustdesk
2023-02-01 21:28:26 +08:00
parent fdfda2a982
commit 68cc667f47
3 changed files with 13 additions and 8 deletions

View File

@@ -51,7 +51,7 @@ class ChatPage extends StatelessWidget implements PageShape {
return Stack(
children: [
LayoutBuilder(builder: (context, constraints) {
return DashChat(
final chat = DashChat(
onSend: (chatMsg) {
chatModel.send(chatMsg);
chatModel.inputNode.requestFocus();
@@ -108,6 +108,7 @@ class ChatPage extends StatelessWidget implements PageShape {
borderBottomLeft: 8,
)),
);
return SelectionArea(child: chat);
}),
desktopType == DesktopType.cm ||
chatModel.currentID == ChatModel.clientModeID