Browse Source

主页-快捷工具】两个工具同时显示hover状态的问题复现了(已修复)

tangchao 1 year ago
parent
commit
d0fbd060be

+ 16 - 0
PDF Office/PDF Master.xcodeproj/xcuserdata/kdanmobile.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist

@@ -356,5 +356,21 @@
             landmarkType = "7">
          </BreakpointContent>
       </BreakpointProxy>
+      <BreakpointProxy
+         BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
+         <BreakpointContent
+            uuid = "12CD3D3D-37E1-487A-8732-D1D3E1E9CE3A"
+            shouldBeEnabled = "No"
+            ignoreCount = "0"
+            continueAfterRunningActions = "No"
+            filePath = "PDF Master/Class/Home/Category/NSViewController+DesignToken.swift"
+            startingColumnNumber = "9223372036854775807"
+            endingColumnNumber = "9223372036854775807"
+            startingLineNumber = "414"
+            endingLineNumber = "414"
+            landmarkName = "card(bg:titleText:descText:spacing:state:)"
+            landmarkType = "7">
+         </BreakpointContent>
+      </BreakpointProxy>
    </Breakpoints>
 </Bucket>

+ 6 - 2
PDF Office/PDF Master/Class/Home/ViewController/KMHomeFastToolViewController.swift

@@ -26,7 +26,7 @@ class KMHomeFastToolViewController: NSViewController {
     @IBOutlet weak var fastToolBoxHeightConstraint: NSLayoutConstraint!
     
     let ScrollerViewWidget: CGFloat = 15.0
-    var collectionItemWidth: Int! = 230
+    var collectionItemWidth: Int = 230
     
     var fastToolMoreButtonVC: KMDesignButton!
     var fastToolAllToolsButtonVC: KMDesignButton!
@@ -256,6 +256,10 @@ extension KMHomeFastToolViewController: NSCollectionViewDelegateFlowLayout {
     }
     
     func collectionView(_ collectionView: NSCollectionView, layout collectionViewLayout: NSCollectionViewLayout, minimumInteritemSpacingForSectionAt section: Int) -> CGFloat {
-        return 16
+        return 8
+    }
+    
+    func collectionView(_ collectionView: NSCollectionView, layout collectionViewLayout: NSCollectionViewLayout, insetForSectionAt section: Int) -> NSEdgeInsets {
+        return NSEdgeInsets(top: 0, left: 0, bottom: 15, right: 0)
     }
 }

BIN
PDF Office/PDF Office.xcodeproj/project.xcworkspace/xcuserdata/kdanmobile.xcuserdatad/UserInterfaceState.xcuserstate