marinofaggiana 3 years ago
parent
commit
c8b043a2f1
1 changed files with 3 additions and 1 deletions
  1. 3 1
      iOSClient/Share/NCSharePaging.swift

+ 3 - 1
iOSClient/Share/NCSharePaging.swift

@@ -25,6 +25,7 @@
 import UIKit
 import Parchment
 import NCCommunication
+import MarqueeLabel
 
 class NCSharePaging: UIViewController {
     
@@ -293,6 +294,7 @@ class NCSharePagingView: PagingView {
         }
         headerView.path.text = NCUtilityFileSystem.shared.getPath(metadata: metadata)
         headerView.path.textColor = NCBrandColor.shared.label
+        headerView.path.trailingBuffer = headerView.path.frame.width
         if metadata.favorite {
             headerView.favorite.setImage(NCUtility.shared.loadImage(named: "star.fill", color: NCBrandColor.shared.yellowFavorite, size: 20), for: .normal)
         } else {
@@ -331,7 +333,7 @@ class NCSharePagingView: PagingView {
 class NCShareHeaderView: UIView {
     
     @IBOutlet weak var imageView: UIImageView!
-    @IBOutlet weak var path: UILabel!
+    @IBOutlet weak var path: MarqueeLabel!
     @IBOutlet weak var info: UILabel!
     @IBOutlet weak var favorite: UIButton!