Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit fadf071

Browse files
authored
Repo PRs render PR icon, more whitespace (#2089)
* more spacing in issues/prs * fix bug where PRs were flagged as issues * fix invert on bottom padding
1 parent 568bdd0 commit fadf071

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Classes/Repository/GQL+RepositoryIssueSummaryType.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ extension RepoSearchPagesQuery.Data.Search.Node.AsPullRequest: RepositoryIssueSu
8989
}
9090

9191
var pullRequest: Bool {
92-
return false
92+
return true
9393
}
9494

9595
var status: IssueStatus {

Classes/Repository/RepositorySummaryCell.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import DateAgo
1414
final class RepositorySummaryCell: SelectableCell {
1515

1616
static let titleInset = UIEdgeInsets(
17-
top: Styles.Sizes.rowSpacing,
17+
top: Styles.Sizes.gutter,
1818
left: Styles.Sizes.icon.width + 2*Styles.Sizes.columnSpacing,
1919
bottom: Styles.Sizes.rowSpacing,
2020
right: Styles.Sizes.gutter
@@ -53,7 +53,7 @@ final class RepositorySummaryCell: SelectableCell {
5353
detailsStackView.addArrangedSubview(secondaryLabel)
5454
detailsStackView.addArrangedSubview(labelListView)
5555
detailsStackView.snp.makeConstraints { (make) in
56-
make.bottom.equalTo(contentView).offset(-Styles.Sizes.rowSpacing)
56+
make.bottom.equalTo(contentView).offset(-Styles.Sizes.gutter)
5757
make.left.equalTo(reasonImageView.snp.right).offset(Styles.Sizes.columnSpacing)
5858
make.right.equalTo(contentView.snp.right).offset(-Styles.Sizes.columnSpacing)
5959
}

Classes/Repository/RepositorySummarySectionController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ final class RepositorySummarySectionController: ListGenericSectionController<Rep
3636

3737
let height = object.title.viewSize(in: width).height
3838
+ Styles.Text.secondary.preferredFont.lineHeight
39-
+ Styles.Sizes.rowSpacing
39+
+ Styles.Sizes.gutter
4040
+ labelListViewHeightAndSpacing
4141
return CGSize(width: width, height: ceil(height))
4242
}

0 commit comments

Comments
 (0)