This commit is contained in:
Nihaal Sharma committed 2026-05-08 19:13:38 +01:00
1 parent cec8fe74aa
commit 286cc13213
1 file changed
+2 -2
@@ -80,8 +80,8 @@ class PlainEmojiCollectionViewCell: UICollectionViewCell {
cols = max(1, floor(availWidth/width)) cols = max(1, floor(availWidth/width))
} }
let totalSpacing = ((collectionView.collectionViewLayout as? UICollectionViewFlowLayout)?.minimumInteritemSpacing ?? 0) * (cols-1) let totalSpacing = ((collectionView.collectionViewLayout as? UICollectionViewFlowLayout)?.minimumInteritemSpacing ?? 0) * (cols-1)
let itemWidth = (availWidth-totalSpacing)/cols let itemWidth = ((availWidth-totalSpacing)/cols).rounded(.down)
layoutAttributes.size = CGSize(width: itemWidth.rounded(.down), height: itemWidth.rounded(.down)) layoutAttributes.size = CGSize(width: itemWidth, height: itemWidth)
return layoutAttributes return layoutAttributes
} }
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.