浏览代码

fix UI/UX

Marino Faggiana 6 年之前
父节点
当前提交
cf404d219e
共有 3 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      iOSClient/Main/NCActionSheetHeaderView.xib
  2. 1 1
      iOSClient/Offline/NCOffline.swift
  3. 2 2
      iOSClient/Trash/NCTrash.swift

+ 1 - 1
iOSClient/Main/NCActionSheetHeaderView.xib

@@ -16,7 +16,7 @@
             <rect key="frame" x="0.0" y="0.0" width="414" height="50"/>
             <rect key="frame" x="0.0" y="0.0" width="414" height="50"/>
             <autoresizingMask key="autoresizingMask"/>
             <autoresizingMask key="autoresizingMask"/>
             <subviews>
             <subviews>
-                <imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="lfq-lr-NgS" userLabel="ImageItem">
+                <imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="lfq-lr-NgS" userLabel="ImageItem">
                     <rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
                     <rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
                     <constraints>
                     <constraints>
                         <constraint firstAttribute="height" constant="50" id="LyU-cM-aSJ"/>
                         <constraint firstAttribute="height" constant="50" id="LyU-cM-aSJ"/>

+ 1 - 1
iOSClient/Offline/NCOffline.swift

@@ -313,7 +313,7 @@ class NCOffline: UIViewController ,UICollectionViewDataSource, UICollectionViewD
             
             
             let headerView = actionSheetHeader(with: metadata)
             let headerView = actionSheetHeader(with: metadata)
             actionSheet?.headerView = headerView
             actionSheet?.headerView = headerView
-            actionSheet?.headerView?.frame.size.height = 45
+            actionSheet?.headerView?.frame.size.height = 50
             
             
             actionSheet?.present(in: self, from: sender as! UIButton)
             actionSheet?.present(in: self, from: sender as! UIButton)
         } else {
         } else {

+ 2 - 2
iOSClient/Trash/NCTrash.swift

@@ -267,7 +267,7 @@ class NCTrash: UIViewController ,UICollectionViewDataSource, UICollectionViewDel
             
             
             let headerView = actionSheetHeader(with: fileID)
             let headerView = actionSheetHeader(with: fileID)
             actionSheet?.headerView = headerView
             actionSheet?.headerView = headerView
-            actionSheet?.headerView?.frame.size.height = 45
+            actionSheet?.headerView?.frame.size.height = 50
             
             
             actionSheet?.present(in: self, from: sender as! UIButton)
             actionSheet?.present(in: self, from: sender as! UIButton)
         } else {
         } else {
@@ -298,7 +298,7 @@ class NCTrash: UIViewController ,UICollectionViewDataSource, UICollectionViewDel
             
             
             let headerView = actionSheetHeader(with: fileID)
             let headerView = actionSheetHeader(with: fileID)
             actionSheet?.headerView = headerView
             actionSheet?.headerView = headerView
-            actionSheet?.headerView?.frame.size.height = 45
+            actionSheet?.headerView?.frame.size.height = 50
             
             
             actionSheet?.present(in: self, from: sender as! UIButton)
             actionSheet?.present(in: self, from: sender as! UIButton)
         } else {
         } else {