Made SpaceSubSpacesDialog scrollable, for a better UX, and to account for a very long list of subspaces.

This commit is contained in:
Faris Armoush
2025-07-27 11:01:22 +03:00
parent cd8ffc99ea
commit 2d69e3c72f

View File

@ -89,7 +89,12 @@ class _SpaceSubSpacesDialogState extends State<SpaceSubSpacesDialog> {
),
child: const SelectableText('Create Sub-Space'),
),
content: Column(
content: ConstrainedBox(
constraints: BoxConstraints(
maxHeight: context.screenHeight * 0.4,
),
child: SingleChildScrollView(
child: Column(
spacing: 12,
mainAxisSize: MainAxisSize.min,
children: [
@ -112,6 +117,8 @@ class _SpaceSubSpacesDialogState extends State<SpaceSubSpacesDialog> {
),
],
),
),
),
actions: [
SpaceDetailsActionButtons(
onSave: _hasDuplicateNames ? null : _handleSave,