mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-05-13 09:56:38 +08:00
min hit size on action buttons
This commit is contained in:
@@ -123,9 +123,10 @@ final class IssueTextActionsView: UIView, UICollectionViewDataSource, UICollecti
|
||||
}
|
||||
|
||||
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
|
||||
let height = collectionView.bounds.height
|
||||
return CGSize(
|
||||
width: operations[indexPath.item].icon?.size.width ?? 0,
|
||||
height: collectionView.bounds.height
|
||||
width: min(operations[indexPath.item].icon?.size.width ?? 0, height),
|
||||
height: height
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1296</string>
|
||||
<string>1298</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>LSApplicationQueriesSchemes</key>
|
||||
|
||||
Reference in New Issue
Block a user