Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][locker] Fix Important selection and tighten list padding (#13659)

aman-pilot6219535991c8
diff --git a/mobile/apps/locker/changes/collection-selection-padding.md b/mobile/apps/locker/changes/collection-selection-padding.md
new file mode 100644
index 0000000000..7f2820c205
--- /dev/null
+++ b/mobile/apps/locker/changes/collection-selection-padding.md
@@ -0,0 +1 @@
+- Fixed Important selection and tightened list padding.
diff --git a/mobile/apps/locker/lib/ui/components/collection_list_widget.dart b/mobile/apps/locker/lib/ui/components/collection_list_widget.dart
index 50d585e427..de0ef24b5e 100644
--- a/mobile/apps/locker/lib/ui/components/collection_list_widget.dart
+++ b/mobile/apps/locker/lib/ui/components/collection_list_widget.dart
@@ -136,7 +136,7 @@ class CollectionListWidget extends StatelessWidget {
return AnimatedContainer(
duration: const Duration(milliseconds: 300),
curve: Curves.easeOut,
- padding: const EdgeInsets.only(left: 12, top: 12, bottom: 12),
+ padding: const EdgeInsets.only(left: 10, top: 10, bottom: 10),
decoration: BoxDecoration(
border: Border.all(
color: isSelected ? colors.strokeDark : colors.fillLight,
@@ -149,9 +149,9 @@ class CollectionListWidget extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
collectionRowWidget,
- if (!isFavourite)
+ if (isSelected || !isFavourite)
Padding(
- padding: const EdgeInsets.only(right: 12.0),
+ padding: const EdgeInsets.only(right: 10.0),
child: SizedBox(
width: 44,
height: 24,
diff --git a/mobile/apps/locker/lib/ui/components/file_list_widget.dart b/mobile/apps/locker/lib/ui/components/file_list_widget.dart
index c17b57b72f..85d22890fc 100644
--- a/mobile/apps/locker/lib/ui/components/file_list_widget.dart
+++ b/mobile/apps/locker/lib/ui/components/file_list_widget.dart
@@ -126,7 +126,7 @@ class FileListWidget extends StatelessWidget {
return AnimatedContainer(
duration: const Duration(milliseconds: 200),
curve: Curves.easeOut,
- padding: const EdgeInsets.all(12),
+ padding: const EdgeInsets.all(10),
decoration: BoxDecoration(
border: Border.all(
color: isSelected ? colors.strokeDark : colors.fillLight,