Skip to content

Commit

Permalink
Fix for misaligned badge in post list (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
AngeloStavrow authored Nov 13, 2022
1 parent f256996 commit f317862
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [Mac] Updated the URL and minimum version of the WriteFreely Swift package.
- [Mac] Upgraded the Sparkle package to v2.
- [Mac] The app now prompts you to reach out to our user forums if it detects a crash.
- [iOS] The post editor now scrolls in its entirety, including the title field.

### Fixed

Expand Down
7 changes: 6 additions & 1 deletion Shared/PostList/PostListFilteredView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,11 @@ struct PostListFilteredView: View {

struct PostListFilteredView_Previews: PreviewProvider {
static var previews: some View {
return PostListFilteredView(collection: nil, showAllPosts: false, postCount: .constant(999))
return PostListFilteredView(
collection: nil,
showAllPosts: false,
postCount: .constant(999)
)
.environmentObject(WriteFreelyModel())
}
}
1 change: 0 additions & 1 deletion Shared/PostList/PostStatusBadgeView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ struct PostStatusBadgeView: View {
.padding(EdgeInsets(top: 2.5, leading: 7.5, bottom: 2.5, trailing: 7.5))
.background(badgeColor)
.clipShape(RoundedRectangle(cornerRadius: 5.0, style: .circular))
.frame(maxWidth: .infinity)
}

func setupBadgeProperties(for status: PostStatus) -> (String, Color) {
Expand Down

0 comments on commit f317862

Please sign in to comment.