This commit is contained in:
2025-11-17 15:39:03 +08:00
parent dc813fcabc
commit d849b201ca
7 changed files with 59 additions and 19 deletions

View File

@@ -78,7 +78,7 @@ typedef NS_ENUM(NSInteger, KBSearchSection) {
}];
[self.collectionView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.topBar.mas_bottom).offset(12);
make.top.equalTo(self.topBar.mas_bottom).offset(0);
make.left.right.bottom.equalTo(self.view);
}];
@@ -310,7 +310,7 @@ typedef NS_ENUM(NSInteger, KBSearchSection) {
if (section == KBSearchSectionHistory) {
return UIEdgeInsetsMake(8, 16, 12, 16);
}
return UIEdgeInsetsMake(8, 16, 20, 16);
return UIEdgeInsetsMake(8, 16, 16, 16);
}
- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumInteritemSpacingForSectionAtIndex:(NSInteger)section {
@@ -326,7 +326,7 @@ typedef NS_ENUM(NSInteger, KBSearchSection) {
if (section == KBSearchSectionHistory) {
return self.historyWords.count == 0 ? CGSizeZero : CGSizeMake(collectionView.bounds.size.width, 40);
}
return CGSizeMake(collectionView.bounds.size.width, 40);
return CGSizeMake(collectionView.bounds.size.width, 24);
}
#pragma mark - UICollectionViewDelegate