浏览代码

Merge pull request #814 from ente-io/overlay_icon_sizes

Update the size of bottom-overlay-icons
Vishnu Mohandas 2 年之前
父节点
当前提交
738ca61699
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5 2
      lib/ui/viewer/file/file_icons_widget.dart

+ 5 - 2
lib/ui/viewer/file/file_icons_widget.dart

@@ -23,7 +23,10 @@ class UnSyncedIcon extends StatelessWidget {
 
   @override
   Widget build(BuildContext context) {
-    return const _BottomLeftOverlayIcon(Icons.cloud_off_outlined);
+    return const _BottomLeftOverlayIcon(
+      Icons.cloud_off_outlined,
+      baseSize: 18,
+    );
   }
 }
 
@@ -186,7 +189,7 @@ class _BottomLeftOverlayIcon extends StatelessWidget {
 
         if (constraints.hasBoundedWidth) {
           final w = constraints.maxWidth;
-          if (w > 120) {
+          if (w > 125) {
             size = 24;
           } else if (w < 75) {
             inset = 3;