fix(ui): do not expand unless space for content is required
What changed, and why it matters
This commit is a minor user-interface layout fix. It changes a dialog box so it only expands vertically when its content actually needs the extra space, rather than always stretching to fill available screen height. There is no indication this relates to security.
No security action needed. Treat as a normal UI/layout fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch changes two Flutter widget properties in a desktop wallet dialog: Column.mainAxisSize from MainAxisSize.max to MainAxisSize.min, and replaces an Expanded wrapper around SingleChildScrollView with Flexible. This prevents the dialog from occupying more vertical space than its content requires. No security-relevant code paths are touched.
Changed components
lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/more_features/more_features_dialog.dartInspect captured patch +2 / −2
diff --git a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/more_features/more_features_dialog.dart b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/more_features/more_features_dialog.dart
index decfd8c..877d67b 100644
--- a/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/more_features/more_features_dialog.dart
+++ b/lib/pages_desktop_specific/my_stack_view/wallet_view/sub_widgets/more_features/more_features_dialog.dart
@@ -336,7 +336,7 @@ class _MoreFeaturesDialogState extends ConsumerState<MoreFeaturesDialog> {
return DesktopDialog(
maxHeight: maxDialogHeight,
child: Column(
- mainAxisSize: MainAxisSize.max,
+ mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
Row(
@@ -353,7 +353,7 @@ class _MoreFeaturesDialogState extends ConsumerState<MoreFeaturesDialog> {
],
),
- Expanded(
+ Flexible(
child: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.