Skip to content

Commit f317862

Browse files
Fix for misaligned badge in post list (#230)
1 parent f256996 commit f317862

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2222
- [Mac] Updated the URL and minimum version of the WriteFreely Swift package.
2323
- [Mac] Upgraded the Sparkle package to v2.
2424
- [Mac] The app now prompts you to reach out to our user forums if it detects a crash.
25-
- [iOS] The post editor now scrolls in its entirety, including the title field.
2625

2726
### Fixed
2827

Shared/PostList/PostListFilteredView.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ struct PostListFilteredView: View {
135135

136136
struct PostListFilteredView_Previews: PreviewProvider {
137137
static var previews: some View {
138-
return PostListFilteredView(collection: nil, showAllPosts: false, postCount: .constant(999))
138+
return PostListFilteredView(
139+
collection: nil,
140+
showAllPosts: false,
141+
postCount: .constant(999)
142+
)
143+
.environmentObject(WriteFreelyModel())
139144
}
140145
}

Shared/PostList/PostStatusBadgeView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ struct PostStatusBadgeView: View {
1414
.padding(EdgeInsets(top: 2.5, leading: 7.5, bottom: 2.5, trailing: 7.5))
1515
.background(badgeColor)
1616
.clipShape(RoundedRectangle(cornerRadius: 5.0, style: .circular))
17-
.frame(maxWidth: .infinity)
1817
}
1918

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

0 commit comments

Comments
 (0)