don't scroll in scroll, size debug log dialog down on small screens

This commit is contained in:
sneurlax 2024-02-06 21:08:36 -06:00
parent 2bb00d561f
commit 8c7f9b491d
2 changed files with 5 additions and 4 deletions

View file

@ -321,9 +321,7 @@ class _AdvancedSettings extends ConsumerState<AdvancedSettings> {
useSafeArea: false,
barrierDismissible: true,
builder: (context) {
return const SingleChildScrollView(
child: DebugInfoDialog(),
);
return const DebugInfoDialog();
},
);
},

View file

@ -98,7 +98,10 @@ class _DebugInfoDialog extends ConsumerState<DebugInfoDialog> {
@override
Widget build(BuildContext context) {
return DesktopDialog(
maxHeight: 850,
// Max height of 850 unless the screen is smaller than that.
maxHeight: MediaQuery.of(context).size.height < 850
? MediaQuery.of(context).size.height
: 850,
maxWidth: 600,
child: Column(
children: [