Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix scam alert buttons overflow

Sahil Yeoleab982e86c391
diff --git a/flutter/lib/mobile/pages/server_page.dart b/flutter/lib/mobile/pages/server_page.dart
index deaddbea6..5dc6f3526 100644
--- a/flutter/lib/mobile/pages/server_page.dart
+++ b/flutter/lib/mobile/pages/server_page.dart
@@ -368,7 +368,9 @@ class _ScamWarningDialogState extends State<ScamWarningDialog> {
Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
- ElevatedButton(
+ Container(
+ constraints: BoxConstraints(maxWidth: 150),
+ child: ElevatedButton(
onPressed: isButtonLocked
? null
: () {
@@ -387,10 +389,15 @@ class _ScamWarningDialogState extends State<ScamWarningDialog> {
fontWeight: FontWeight.bold,
fontSize: 13.0,
),
+ maxLines: 2,
+ overflow: TextOverflow.ellipsis,
),
),
+ ),
SizedBox(width: 15),
- ElevatedButton(
+ Container(
+ constraints: BoxConstraints(maxWidth: 150),
+ child: ElevatedButton(
onPressed: () {
Navigator.of(context).pop();
},
@@ -403,8 +410,11 @@ class _ScamWarningDialogState extends State<ScamWarningDialog> {
fontWeight: FontWeight.bold,
fontSize: 13.0,
),
+ maxLines: 2,
+ overflow: TextOverflow.ellipsis,
),
),
+ ),
],
)])),
contentPadding: EdgeInsets.all(0.0),