Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix unreadable copy fields in No email app found sheet

ashilkn4002530c6e2e
diff --git a/mobile/apps/photos/changes/report-issue-no-mail-sheet.md b/mobile/apps/photos/changes/report-issue-no-mail-sheet.md
new file mode 100644
index 0000000000..4f8368694d
--- /dev/null
+++ b/mobile/apps/photos/changes/report-issue-no-mail-sheet.md
@@ -0,0 +1 @@
+- Fix the "No email app found" sheet on the Report an issue screen, where the Subject, Message and device info were unreadable.
diff --git a/mobile/apps/photos/lib/ui/settings/support/no_mail_app_sheet.dart b/mobile/apps/photos/lib/ui/settings/support/no_mail_app_sheet.dart
index 359f63eb46..9cbd4257e4 100644
--- a/mobile/apps/photos/lib/ui/settings/support/no_mail_app_sheet.dart
+++ b/mobile/apps/photos/lib/ui/settings/support/no_mail_app_sheet.dart
@@ -189,44 +189,58 @@ class _CopyField extends StatelessWidget {
style: TextStyles.mini.copyWith(color: colors.textLight),
),
),
- Container(
- decoration: BoxDecoration(
- color: colors.fillBase,
- borderRadius: BorderRadius.circular(Radii.lg),
- ),
- padding: const EdgeInsets.fromLTRB(Spacing.md, 10, Spacing.sm, 10),
- child: Row(
- crossAxisAlignment: CrossAxisAlignment.center,
- children: [
- Expanded(
- child: Text(
- data.value,
- style: TextStyles.mini.copyWith(color: colors.textBase),
- ),
+ Stack(
+ clipBehavior: Clip.none,
+ children: [
+ Container(
+ decoration: BoxDecoration(
+ color: colors.fillLight,
+ borderRadius: BorderRadius.circular(Radii.lg),
),
- const SizedBox(width: Spacing.sm),
- Material(
- color: colors.fillDark,
- borderRadius: BorderRadius.circular(Radii.sm),
- child: InkWell(
- borderRadius: BorderRadius.circular(Radii.sm),
- onTap: onTap,
- child: SizedBox(
- width: 32,
- height: 32,
+ padding: const EdgeInsets.fromLTRB(
+ Spacing.md,
+ 10,
+ Spacing.sm,
+ 10,
+ ),
+ child: Row(
+ crossAxisAlignment: CrossAxisAlignment.center,
+ children: [
+ Expanded(
+ child: Text(
+ data.value,
+ style: TextStyles.mini.copyWith(color: colors.textBase),
+ ),
+ ),
+ const SizedBox(width: Spacing.sm),
+ Padding(
+ padding: const EdgeInsets.all(7),
child: HugeIcon(
icon: isExportAction
? HugeIcons.strokeRoundedDownload04
: HugeIcons.strokeRoundedCopy01,
size: 18,
- color: colors.textLight,
+ color: colors.textLighter,
strokeWidth: 1.6,
),
),
+ ],
+ ),
+ ),
+ // 44x44 tap target overlaid on the trailing icon. It overflows the
+ // field bounds rather than enlarging the row, matching the minimum
+ // touch target without changing the visual layout.
+ Positioned.fill(
+ child: Align(
+ alignment: Alignment.centerRight,
+ child: GestureDetector(
+ behavior: HitTestBehavior.opaque,
+ onTap: onTap,
+ child: const SizedBox(width: 44, height: 44),
),
),
- ],
- ),
+ ),
+ ],
),
if (data.note != null && data.note!.trim().isNotEmpty) ...[
const SizedBox(height: 4),