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, useSafeArea: false,
barrierDismissible: true, barrierDismissible: true,
builder: (context) { builder: (context) {
return const SingleChildScrollView( return const DebugInfoDialog();
child: DebugInfoDialog(),
);
}, },
); );
}, },

View file

@ -98,7 +98,10 @@ class _DebugInfoDialog extends ConsumerState<DebugInfoDialog> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return DesktopDialog( 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, maxWidth: 600,
child: Column( child: Column(
children: [ children: [