Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix text overflow issue

laurenspriemc1f7a01ed285
diff --git a/mobile/lib/ui/tools/editor/image_editor_page.dart b/mobile/lib/ui/tools/editor/image_editor_page.dart
index 15f9e32041..789594444b 100644
--- a/mobile/lib/ui/tools/editor/image_editor_page.dart
+++ b/mobile/lib/ui/tools/editor/image_editor_page.dart
@@ -429,11 +429,15 @@ class _ImageEditorPageState extends State<ImageEditorPage> {
child: Row(
children: [
SizedBox(
- width: 40,
- child: Text(
- S.of(context).color,
- style: subtitle2.copyWith(
- color: subtitle2.color!.withOpacity(0.8),
+ width: 50,
+ child: FittedBox(
+ fit: BoxFit.scaleDown,
+ alignment: Alignment.centerLeft,
+ child: Text(
+ S.of(context).color,
+ style: subtitle2.copyWith(
+ color: subtitle2.color!.withOpacity(0.8),
+ ),
),
),
),
@@ -475,11 +479,15 @@ class _ImageEditorPageState extends State<ImageEditorPage> {
child: Row(
children: [
SizedBox(
- width: 40,
- child: Text(
- S.of(context).light,
- style: subtitle2.copyWith(
- color: subtitle2.color!.withOpacity(0.8),
+ width: 50,
+ child: FittedBox(
+ fit: BoxFit.scaleDown,
+ alignment: Alignment.centerLeft,
+ child: Text(
+ S.of(context).light,
+ style: subtitle2.copyWith(
+ color: subtitle2.color!.withOpacity(0.8),
+ ),
),
),
),