Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix alignment of fav icon

ashilkn8164a25fa963
diff --git a/lib/ui/viewer/file/file_app_bar.dart b/lib/ui/viewer/file/file_app_bar.dart
index 867065ace1..5e9224a4a0 100644
--- a/lib/ui/viewer/file/file_app_bar.dart
+++ b/lib/ui/viewer/file/file_app_bar.dart
@@ -129,7 +129,7 @@ class FileAppBarState extends State<FileAppBar> {
if (isOwnedByUser && !isFileHidden && isFileUploaded) {
actions.add(
Padding(
- padding: const EdgeInsets.symmetric(vertical: 6, horizontal: 7.5),
+ padding: const EdgeInsets.all(8),
child: FavoriteWidget(widget.file),
),
);
diff --git a/lib/ui/viewer/file_details/favorite_widget.dart b/lib/ui/viewer/file_details/favorite_widget.dart
index 262ced2e9d..5e39b15108 100644
--- a/lib/ui/viewer/file_details/favorite_widget.dart
+++ b/lib/ui/viewer/file_details/favorite_widget.dart
@@ -41,6 +41,7 @@ class _FavoriteWidgetState extends State<FavoriteWidget> {
builder: (context, snapshot) {
final bool isLiked = snapshot.data ?? false;
return LikeButton(
+ size: 24,
isLiked: isLiked,
onTap: (oldValue) async {
final isLiked = !oldValue;