From b67483db4e234ee8af64b061a977a80ff0189118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20M=C3=BCllner?= Date: Wed, 4 Mar 2026 16:53:25 +0100 Subject: [PATCH] fix(reporting): prevent report reason dropdown overflow on small widths --- lib/screens/garage_screen.dart | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/screens/garage_screen.dart b/lib/screens/garage_screen.dart index 2f4a86a..b968353 100644 --- a/lib/screens/garage_screen.dart +++ b/lib/screens/garage_screen.dart @@ -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( + isExpanded: true, initialValue: _selectedReason, decoration: const InputDecoration( labelText: 'Reason', @@ -1249,7 +1250,11 @@ class _ReportCarDialogState extends State<_ReportCarDialog> { .map( (reason) => DropdownMenuItem( value: reason, - child: Text(reason), + child: Text( + reason, + overflow: TextOverflow.ellipsis, + maxLines: 1, + ), ), ) .toList(),