Browse Source

Improved more

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana 2 years ago
parent
commit
65f3873a2d
1 changed files with 6 additions and 4 deletions
  1. 6 4
      iOSClient/More/NCMore.swift

+ 6 - 4
iOSClient/More/NCMore.swift

@@ -357,7 +357,7 @@ class NCMore: UIViewController, UITableViewDelegate, UITableViewDataSource {
                 }
             }
             
-            cell.layer.cornerRadius = 20
+            cell.layer.cornerRadius = 15
 
             return cell
 
@@ -393,10 +393,12 @@ class NCMore: UIViewController, UITableViewDelegate, UITableViewDataSource {
             let rows = tableView.numberOfRows(inSection: indexPath.section)
             
             if indexPath.row == 0 {
-                cell.layer.cornerRadius = 20
-                cell.layer.maskedCorners = [.layerMaxXMinYCorner, .layerMinXMinYCorner]
+                cell.layer.cornerRadius = 15
+                if indexPath.row != rows - 1 {
+                    cell.layer.maskedCorners = [.layerMaxXMinYCorner, .layerMinXMinYCorner]
+                }
             } else if indexPath.row == rows - 1 {
-                cell.layer.cornerRadius = 20
+                cell.layer.cornerRadius = 15
                 cell.layer.maskedCorners = [.layerMaxXMaxYCorner, .layerMinXMaxYCorner]
                 cell.separator.backgroundColor = .clear
             }