mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-27 01:14:43 +01:00
Limit max account dialog width (mainly for tablets)
This commit is contained in:
parent
c304011ea3
commit
dfe03caf73
1 changed files with 91 additions and 88 deletions
|
@ -91,6 +91,8 @@ class _WrappedAccountPickerDialog extends StatelessWidget {
|
|||
],
|
||||
child: Dialog(
|
||||
insetPadding: const EdgeInsets.symmetric(horizontal: 12, vertical: 24),
|
||||
child: ConstrainedBox(
|
||||
constraints: const BoxConstraints(maxWidth: 512),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(8),
|
||||
child: ClipRRect(
|
||||
|
@ -136,8 +138,8 @@ class _WrappedAccountPickerDialog extends StatelessWidget {
|
|||
const _AccountDropdown(),
|
||||
if (state.isOpenDropdown) ...[
|
||||
...state.accounts
|
||||
.where(
|
||||
(a) => a.id != bloc.activeAccount.id)
|
||||
.where((a) =>
|
||||
a.id != bloc.activeAccount.id)
|
||||
.map((a) => _AccountView(account: a)),
|
||||
const _NewAccountView(),
|
||||
] else
|
||||
|
@ -188,6 +190,7 @@ class _WrappedAccountPickerDialog extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue