From dacbd3c52bfc918d4cbccd9e4bd1c33c7ac157fd Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Tue, 30 Mar 2021 10:30:09 +1100 Subject: [PATCH 1/2] Fix minor UI issues --- Session/Open Groups/OpenGroupSuggestionGrid.swift | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Session/Open Groups/OpenGroupSuggestionGrid.swift b/Session/Open Groups/OpenGroupSuggestionGrid.swift index eb2c5c142..182edaf08 100644 --- a/Session/Open Groups/OpenGroupSuggestionGrid.swift +++ b/Session/Open Groups/OpenGroupSuggestionGrid.swift @@ -85,8 +85,9 @@ final class OpenGroupSuggestionGrid : UIView, UICollectionViewDataSource, UIColl func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { let cell = collectionView.dequeueReusableCell(withReuseIdentifier: Cell.identifier, for: indexPath) as! Cell - cell.showRightSeparator = (indexPath.row % 2 != 0) || (indexPath.row % 2 == 0 && indexPath.row == rooms.count - 1) - cell.showBottomSeparator = (indexPath.row >= rooms.count - 2) + let roomCount = min(rooms.count, 8) + cell.showRightSeparator = (indexPath.row % 2 != 0) || (indexPath.row % 2 == 0 && indexPath.row == roomCount - 1) + cell.showBottomSeparator = (indexPath.row >= roomCount - 2) cell.room = rooms[indexPath.item] return cell } @@ -143,8 +144,8 @@ extension OpenGroupSuggestionGrid { stackView.axis = .horizontal stackView.spacing = Values.smallSpacing addSubview(stackView) - stackView.center(in: self) - stackView.leadingAnchor.constraint(greaterThanOrEqualTo: leadingAnchor, constant: Values.smallSpacing).isActive = true + stackView.center(.vertical, in: self) + stackView.pin(.leading, to: .leading, of: self, withInset: Values.smallSpacing) trailingAnchor.constraint(greaterThanOrEqualTo: stackView.trailingAnchor, constant: Values.smallSpacing).isActive = true setUpSeparators() } From 86abc6f6ce573a869e72827ac0fd8cc7bbd4508a Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Tue, 30 Mar 2021 11:13:17 +1100 Subject: [PATCH 2/2] Clean up Session-Info.plist --- Session/Meta/Session-Info.plist | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Session/Meta/Session-Info.plist b/Session/Meta/Session-Info.plist index 2948fa51e..e05788065 100644 --- a/Session/Meta/Session-Info.plist +++ b/Session/Meta/Session-Info.plist @@ -48,10 +48,6 @@ $(CURRENT_PROJECT_VERSION) ITSAppUsesNonExemptEncryption - LOGS_EMAIL - support@whispersystems.org - LOGS_URL - https://github.com/WhisperSystems/Signal-iOS/issues LSApplicationCategoryType public.app-category.social-networking LSRequiresIPhoneOS