Explorar el Código

fix tag

Signed-off-by: Marino Faggiana <marino@marinofaggiana.com>
Marino Faggiana hace 1 año
padre
commit
1908a9f076

+ 5 - 2
iOSClient/Main/Collection Common/NCListCell.swift

@@ -293,8 +293,11 @@ class NCListCell: UICollectionViewCell, UIGestureRecognizerDelegate, NCCellProto
             labelInfo.isHidden = true
             if let tag = tags.first {
                 tagListView.addTag(tag)
-                if tags.count > 1 {
-                    tagListView.addTag("+\(tags.count-1)")
+                if tags.count >= 2 {
+                    tagListView.addTag(tags[1])
+                }
+                if tags.count > 2 {
+                    tagListView.addTag("+\(tags.count-2)")
                 }
             }
         }

+ 2 - 2
iOSClient/Main/Collection Common/NCListCell.xib

@@ -66,10 +66,10 @@
                         <nil key="highlightedColor"/>
                     </label>
                     <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="z1r-ZA-ft8" customClass="TagListView" customModule="TagListView">
-                        <rect key="frame" x="60" y="121" width="519" height="14"/>
+                        <rect key="frame" x="60" y="130" width="519" height="5"/>
                         <color key="backgroundColor" systemColor="systemBackgroundColor"/>
                         <constraints>
-                            <constraint firstAttribute="height" constant="14" id="9NQ-gM-wQ6"/>
+                            <constraint firstAttribute="height" constant="5" id="9NQ-gM-wQ6"/>
                         </constraints>
                         <userDefinedRuntimeAttributes>
                             <userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">