mirror of
https://github.com/zhigang1992/GitHawk.git
synced 2026-04-17 22:53:52 +08:00
fix bottom spacing by rounding up cell height
This commit is contained in:
@@ -67,7 +67,7 @@ final class NotificationCell: SwipeSelectableCell {
|
||||
make.edges.equalTo(contentView).inset(NotificationCell.labelInset)
|
||||
}
|
||||
|
||||
addBorder(.bottom, left: NotificationCell.labelInset.left)
|
||||
contentView.addBorder(.bottom, left: NotificationCell.labelInset.left)
|
||||
}
|
||||
|
||||
required init?(coder aDecoder: NSCoder) {
|
||||
|
||||
@@ -25,7 +25,7 @@ SwipeCollectionViewCellDelegate {
|
||||
override func sizeForItem(at index: Int) -> CGSize {
|
||||
guard let width = collectionContext?.containerSize.width
|
||||
else { fatalError("Collection context must be set") }
|
||||
return CGSize(width: width, height: object?.title.textViewSize(width).height ?? 0)
|
||||
return CGSize(width: width, height: ceil(object?.title.textViewSize(width).height ?? 0))
|
||||
}
|
||||
|
||||
override func cellForItem(at index: Int) -> UICollectionViewCell {
|
||||
|
||||
@@ -53,7 +53,7 @@ final class RepositorySummaryCell: SelectableCell {
|
||||
make.right.equalTo(-inset.right)
|
||||
}
|
||||
|
||||
addBorder(.bottom, left: inset.left)
|
||||
contentView.addBorder(.bottom, left: inset.left)
|
||||
}
|
||||
|
||||
required init?(coder aDecoder: NSCoder) {
|
||||
|
||||
@@ -21,7 +21,7 @@ final class RepositorySummarySectionController: ListGenericSectionController<Rep
|
||||
|
||||
override func sizeForItem(at index: Int) -> CGSize {
|
||||
guard let width = collectionContext?.containerSize.width else { fatalError("Missing context") }
|
||||
return CGSize(width: width, height: object?.title.textViewSize(width).height ?? 0)
|
||||
return CGSize(width: width, height: ceil(object?.title.textViewSize(width).height ?? 0))
|
||||
}
|
||||
|
||||
override func cellForItem(at index: Int) -> UICollectionViewCell {
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
</dict>
|
||||
</array>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1637</string>
|
||||
<string>1642</string>
|
||||
<key>ITSAppUsesNonExemptEncryption</key>
|
||||
<false/>
|
||||
<key>LSApplicationQueriesSchemes</key>
|
||||
|
||||
Reference in New Issue
Block a user