Fix for misaligned badge in post list (#230)

This commit is contained in:
Angelo Stavrow 2022-11-13 06:52:38 -05:00 committed by GitHub
parent f256996161
commit f3178626d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -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] Updated the URL and minimum version of the WriteFreely Swift package.
- [Mac] Upgraded the Sparkle package to v2. - [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. - [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 ### Fixed

View File

@ -135,6 +135,11 @@ struct PostListFilteredView: View {
struct PostListFilteredView_Previews: PreviewProvider { struct PostListFilteredView_Previews: PreviewProvider {
static var previews: some View { 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())
} }
} }

View File

@ -14,7 +14,6 @@ struct PostStatusBadgeView: View {
.padding(EdgeInsets(top: 2.5, leading: 7.5, bottom: 2.5, trailing: 7.5)) .padding(EdgeInsets(top: 2.5, leading: 7.5, bottom: 2.5, trailing: 7.5))
.background(badgeColor) .background(badgeColor)
.clipShape(RoundedRectangle(cornerRadius: 5.0, style: .circular)) .clipShape(RoundedRectangle(cornerRadius: 5.0, style: .circular))
.frame(maxWidth: .infinity)
} }
func setupBadgeProperties(for status: PostStatus) -> (String, Color) { func setupBadgeProperties(for status: PostStatus) -> (String, Color) {