π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mobile][photos] fix overflow in selection control labeled control compomnent
Priyanshu Dangare4462d12efd16
diff --git a/mobile/apps/photos/lib/l10n/intl_en.arb b/mobile/apps/photos/lib/l10n/intl_en.arbindex 4bf03193df..c75ffc47a7 100644--- a/mobile/apps/photos/lib/l10n/intl_en.arb+++ b/mobile/apps/photos/lib/l10n/intl_en.arb@@ -485,7 +485,7 @@"@moreOptions": {"description": "Button label for showing additional delete options."},- "setAsMyDefaultChoice": "Set as my default choice",+ "setAsMyDefaultChoice": "Set this as my default choice for every future delete action unless I come back later and explicitly choose something else","@setAsMyDefaultChoice": {"description": "Checkbox label for saving the selected delete action as the default choice."},diff --git a/mobile/packages/ente_components/lib/components/selection_controls/labeled_control_component.dart b/mobile/packages/ente_components/lib/components/selection_controls/labeled_control_component.dartindex 28d67b2b96..efefa624f9 100644--- a/mobile/packages/ente_components/lib/components/selection_controls/labeled_control_component.dart+++ b/mobile/packages/ente_components/lib/components/selection_controls/labeled_control_component.dart@@ -50,7 +50,7 @@ class LabeledControlComponent extends StatelessWidget {children: [control,const SizedBox(width: Spacing.md),- tappableLabel,+ Flexible(child: tappableLabel),],);}diff --git a/mobile/packages/ente_components/test/components/selection_controls_test.dart b/mobile/packages/ente_components/test/components/selection_controls_test.dartindex 65150ab233..7272865988 100644--- a/mobile/packages/ente_components/test/components/selection_controls_test.dart+++ b/mobile/packages/ente_components/test/components/selection_controls_test.dart@@ -240,6 +240,24 @@ void main() {);});+ testWidgets("LabeledControlComponent wraps long labels", (tester) async {+ const label =+ "Set this as my default choice for every future delete action unless I come back later and explicitly choose something else";+ await tester.pumpWidget(+ _wrap(+ const SizedBox(+ width: 220,+ child: LabeledControlComponent(+ control: CheckboxComponent(selected: true, onChanged: null),+ label: label,+ ),+ ),+ ),+ );+ expect(tester.takeException(), isNull);+ expect(find.text(label), findsOneWidget);+ });+testWidgets("FilterChipComponent renders selected state with token colors", (tester,) async {