Browse Source

Merge branch 'develop' of git.kdan.cc:Mac_PDF/PDF_Office into develop

tangchao 2 năm trước cách đây
mục cha
commit
391efa946e

+ 1 - 0
PDF Office/PDF Office/Class/Home/ViewController/KMHistoryFileCollectionViewItem.swift

@@ -68,6 +68,7 @@ class KMHistoryFileCollectionViewItem: NSCollectionViewItem {
         documentName.textColor = NSColor(hex: "#252629")
         
         documentName.stringValue = filePathUrl!.lastPathComponent
+        mainBox.toolTip = filePathUrl!.lastPathComponent
         let image: NSImage = NSImage.previewForFile(path: filePathUrl!, ofSize: fileImageView.frame.size, asIcon: true) ?? NSImage()
         fileImageView.image = image
     }

+ 1 - 1
PDF Office/PDF Office/Class/Home/ViewController/KMHistoryFileCollectionViewItem.xib

@@ -69,7 +69,7 @@
                             </box>
                             <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="lue-CR-EiO">
                                 <rect key="frame" x="-2" y="68" width="232" height="16"/>
-                                <textFieldCell key="cell" lineBreakMode="truncatingTail" alignment="center" title="文档名称" id="qE9-hu-gK4">
+                                <textFieldCell key="cell" truncatesLastVisibleLine="YES" alignment="center" title="文档名称" id="qE9-hu-gK4">
                                     <font key="font" usesAppearanceFont="YES"/>
                                     <color key="textColor" name="labelColor" catalog="System" colorSpace="catalog"/>
                                     <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/>