makes feed icons a bit bigger

This commit is contained in:
Stuart Breckenridge
2020-11-19 16:32:44 +08:00
parent 3e69571d09
commit fa26fd565e
6 changed files with 10 additions and 9 deletions

View File

@@ -19,16 +19,17 @@ struct ArticleItemView: View {
// Feed Icon
Image(uiImage: thumbnail(article.feedIcon))
.resizable()
.frame(width: 20, height: 20, alignment: .top)
.frame(width: 25, height: 25)
.cornerRadius(4)
// Title and Feed Name
VStack(alignment: .leading) {
Text(article.articleTitle ?? "Untitled")
.font(.caption)
.font(.footnote)
.bold()
.lineLimit(1)
.foregroundColor(.primary)
.padding(.top, -3)
HStack {
Text(article.feedTitle)
@@ -43,7 +44,7 @@ struct ArticleItemView: View {
}
}
})
})
}).padding(.bottom, 4)
}
func thumbnail(_ data: Data?) -> UIImage {