Fix popup menu text overflow on narrow screens

Wrap menu item text in Flexible widget with ellipsis
overflow to prevent layout overflow errors.
This commit is contained in:
m3mo 2026-02-03 19:47:02 +01:00
parent b7ccbe6a19
commit 1665070397

View File

@ -162,7 +162,12 @@ class TaskTile extends StatelessWidget {
children: [
const Icon(Icons.schedule, size: 24),
const SizedBox(width: 12),
Text(l10n.rescheduleToTomorrow),
Flexible(
child: Text(
l10n.rescheduleToTomorrow,
overflow: TextOverflow.ellipsis,
),
),
],
),
),
@ -173,7 +178,13 @@ class TaskTile extends StatelessWidget {
children: [
Icon(Icons.delete, size: 24, color: Theme.of(context).colorScheme.error),
const SizedBox(width: 12),
Text(l10n.delete, style: TextStyle(color: Theme.of(context).colorScheme.error)),
Flexible(
child: Text(
l10n.delete,
style: TextStyle(color: Theme.of(context).colorScheme.error),
overflow: TextOverflow.ellipsis,
),
),
],
),
),