fix(reporting): prevent report reason dropdown overflow on small widths
This commit is contained in:
parent
1be830b16f
commit
b67483db4e
1 changed files with 7 additions and 2 deletions
|
|
@ -1207,7 +1207,7 @@ class _ReportCarDialogState extends State<_ReportCarDialog> {
|
|||
'Wrong model name',
|
||||
'Wrong series or year',
|
||||
'Duplicate catalog entry',
|
||||
'Inappropriate or invalid image',
|
||||
'Invalid image',
|
||||
'Other',
|
||||
];
|
||||
|
||||
|
|
@ -1241,6 +1241,7 @@ class _ReportCarDialogState extends State<_ReportCarDialog> {
|
|||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
DropdownButtonFormField<String>(
|
||||
isExpanded: true,
|
||||
initialValue: _selectedReason,
|
||||
decoration: const InputDecoration(
|
||||
labelText: 'Reason',
|
||||
|
|
@ -1249,7 +1250,11 @@ class _ReportCarDialogState extends State<_ReportCarDialog> {
|
|||
.map(
|
||||
(reason) => DropdownMenuItem<String>(
|
||||
value: reason,
|
||||
child: Text(reason),
|
||||
child: Text(
|
||||
reason,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
),
|
||||
),
|
||||
)
|
||||
.toList(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue